dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29abbb2
)
Fix Postgres archive rule definition.
author
Greg Sabino Mullane
<greg@users.mediawiki.org>
Wed, 7 Feb 2007 16:06:08 +0000
(16:06 +0000)
committer
Greg Sabino Mullane
<greg@users.mediawiki.org>
Wed, 7 Feb 2007 16:06:08 +0000
(16:06 +0000)
maintenance/updaters.inc
patch
|
blob
|
history
diff --git
a/maintenance/updaters.inc
b/maintenance/updaters.inc
index
aed6d77
..
54ae702
100644
(file)
--- a/
maintenance/updaters.inc
+++ b/
maintenance/updaters.inc
@@
-1207,6
+1207,14
@@
ALTER TABLE page_restrictions ADD CONSTRAINT page_restrictions_pk PRIMARY KEY (p
-- Add a new index to help with full-text searches
CREATE INDEX rev_text_id_idx ON revision (rev_text_id);
-- Add a new index to help with full-text searches
CREATE INDEX rev_text_id_idx ON revision (rev_text_id);
+-- Fix the archive rule
+CREATE OR REPLACE RULE archive_insert AS ON INSERT TO archive
+DO INSTEAD INSERT INTO archive2 VALUES (
+ NEW.ar_namespace, NEW.ar_title, NEW.ar_text, NEW.ar_comment, NEW.ar_user, NEW.ar_user_text,
+ TO_TIMESTAMP(NEW.ar_timestamp, 'YYYYMMDDHH24MISS'),
+ NEW.ar_minor_edit, NEW.ar_flags, NEW.ar_rev_id, NEW.ar_text_id
+);
+
-- Note this upgrade
INSERT INTO mediawiki_version (type,mw_version,notes)
VALUES ('Upgrade','MWVERSION','Upgrade from older pre 1.10 version THISVERSION aka SVERSION');
-- Note this upgrade
INSERT INTO mediawiki_version (type,mw_version,notes)
VALUES ('Upgrade','MWVERSION','Upgrade from older pre 1.10 version THISVERSION aka SVERSION');