Commit graph

88 commits

Author SHA1 Message Date
Greg Sabino Mullane
31028e7ce8 Make sequence names explicit for future porting ease. 2008-03-02 16:42:24 +00:00
Greg Sabino Mullane
af503fefa7 Add table page_props to Postgres schema. 2008-02-21 20:04:00 +00:00
Greg Sabino Mullane
a04e6adc06 Have update.php change the functions to their new builtin tsearch2 versions if Postgres >= 8.3 2008-02-19 01:06:06 +00:00
Greg Sabino Mullane
3e2315637c Add ipb_by_text to Postgres schema. 2008-02-19 00:58:52 +00:00
Greg Sabino Mullane
33272a8204 Fixes for 8.3 compatibility, addresses bug 12784. 2008-02-10 16:50:38 +00:00
Greg Sabino Mullane
ffffd9f661 Override replaceVars, other changes to support 8.3 install. 2008-02-10 15:38:48 +00:00
Aaron Schulz
ab1edeb9a8 Normalize _deleted stuff 2008-01-28 01:35:31 +00:00
Aaron Schulz
6293e4a1dd * Make rev_deleted an integer
* Add rev_deleted to updaters.inc
2008-01-27 19:20:48 +00:00
Greg Sabino Mullane
ad76180546 Yet more cleanup of the protected_titles stuff. 2007-12-16 23:35:14 +00:00
Greg Sabino Mullane
12cffaa3b5 Add protected_titles table. 2007-12-16 15:32:34 +00:00
Greg Sabino Mullane
c876d841c2 Make filarchive width/height columns ints for Postgres (not smallint) 2007-10-12 00:40:58 +00:00
Greg Sabino Mullane
1dfb44b51d Major cleanup of schema, based on new compare_schemas.pl functionality. 2007-09-24 20:10:00 +00:00
Greg Sabino Mullane
0ab8c7e910 Make CONCAT calls database portable, change IF() to standard CASE-WHEN calls.
Postgres: replace CHAR(64) with TEXT for fa_storage_key of filearchive
Postgres: Add hasConstraint to allow replacing of oldimage fk constraint
Postgres: make oldimage cascade delete on image deletion
2007-09-23 22:23:01 +00:00
Greg Sabino Mullane
6f617c7ad4 (Bug 11363). Change image and filearchive to bytea from text, to match oldimage. 2007-09-23 20:47:17 +00:00
Greg Sabino Mullane
b3ab7a1b3e Since slashes in page titles have special meaning, force them to delimit words. 2007-09-06 16:32:00 +00:00
Domas Mituzas
74e1bf30a5 destroy rc_patrolling index, no removers added, I hope not that many people did run update with that revision :) 2007-09-05 08:14:18 +00:00
Brion Vibber
5a9878f32d Fixups for page id field in the archive table:
* Make the field nullable for consistency with ar_rev_id and ar_text_id and between MySQL and PostgreSQL and generally so you can cleanly tell between bogus fields and ones that predate use of the field
* Remove duplicate incorrect adding of the field for postgres
* Rename to ar_page_id for consistency with ar_rev_id and ar_text_id
* Rename the patch file for naming consistency

Note that there's no documentation of this schema change in the release notes either, which bugs me a bit.
2007-08-11 14:43:47 +00:00
Greg Sabino Mullane
fe2c0f1ba0 Add rc_patrolling index to Postgres schema 2007-08-09 14:58:02 +00:00
Greg Sabino Mullane
114c92d5cb Various updates to Postgres schema and updater. 2007-07-27 12:23:58 +00:00
Greg Sabino Mullane
9e37652fff Add ar_page column 2007-07-27 11:52:38 +00:00
Yuri Astrakhan
ca7ea84a74 Forgot to update table sql per bug 10280 2007-06-22 15:19:55 +00:00
Greg Sabino Mullane
e30bde5ef4 Add ipb_block_email column 2007-06-16 18:25:14 +00:00
Aaron Schulz
af572f50e3 *Restore oldimage schema changes removed temporarily in r21957 (with some index modifications) 2007-05-31 15:26:15 +00:00
Brion Vibber
9834345068 Revert schema changes in r21954, 21955, 21956 for the moment 2007-05-07 16:24:12 +00:00
Greg Sabino Mullane
39aa3d526d Add new columns to oldimage table. 2007-05-07 15:22:20 +00:00
Greg Sabino Mullane
bca55fa58f Account for pre-existing test table, commit only if setup completes. 2007-03-26 00:12:26 +00:00
Greg Sabino Mullane
af8440f164 Another pesky comma where it shouldn't be. 2007-03-26 00:02:16 +00:00
Greg Sabino Mullane
c18c846e6a Errant comma restored. 2007-03-25 23:51:30 +00:00
Greg Sabino Mullane
eecb949a61 Postgres: Change math_inputhash and math_outputhash to bytea for bug #8716 2007-03-17 20:00:09 +00:00
Greg Sabino Mullane
b0421f3e83 Minor cleanups 2007-03-17 19:12:05 +00:00
River Tarnell
b489c34728 syntax errors in postgres schema 2007-03-14 00:50:56 +00:00
Greg Sabino Mullane
fa416e53db Default null is implicit, remove tabs. 2007-03-14 00:06:36 +00:00
Aaron Schulz
e1174cfafe *Add ar_len, remove reference to archive2 for Postgres 2007-03-13 23:02:43 +00:00
River Tarnell
6597532345 drop obsolete archive2 table; it doesn't work and Special:Delete/Undelete work fine without it 2007-03-10 19:06:40 +00:00
River Tarnell
62a236952e ERROR: null value in column "ar_deleted" violates not-null constraint in /var/www/html/wiki-pg/includes/DatabasePostgres.php on line 402
- coalesce NEW.ar_deleted in archive_insert rule, because MW might not specify it and the default doesn't take effect
2007-03-10 18:50:33 +00:00
Aaron Schulz
5baa9afd14 * Add ar_deleted to CREATE VIEW 2007-03-10 18:41:51 +00:00
Aaron Schulz
f12dd21e08 *Revert r20302, no use for this index 2007-03-10 18:19:07 +00:00
Aaron Schulz
f5282178d2 *Add bitfields to various tables for revisiondelete 2007-03-09 21:51:11 +00:00
Brion Vibber
4063392a82 Since we're making other changes, let's bring in that rev_parent_id field from branches/roman 2007-03-09 20:50:11 +00:00
River Tarnell
dd078ce130 tables.sql needs rev_len 2007-03-08 03:20:31 +00:00
River Tarnell
202acccbbf ERROR: syntax error at or near "a2" at character 22
LINE 1: DELETE FROM archive2 a2 WHERE a2.ar_title = OLD.ar_title AN...
2007-03-07 22:17:43 +00:00
Aaron Schulz
6364231cb9 *Create unique index pr_pagetype for PostgreSQL to fix protection breakage (bug 9097)/ add key name for clearity for MySQL 2007-02-25 21:19:32 +00:00
Aaron Schulz
e6ec1e8a20 *Add pr_id column to fix horrible breakage (Bug 9103) 2007-02-25 19:49:51 +00:00
Brion Vibber
a063c8f0f1 Revert r19843 for now; unreviewed schema changes 2007-02-09 19:41:31 +00:00
Roman Nosov
fcbea0c876 Revision table tree patch (No objections have been raised so i'm committing it to trunk) 2007-02-09 11:22:13 +00:00
Greg Sabino Mullane
b0ca0f13f6 Make user_ip in user_newtalk a TEXT, as it is not an IP field. 2007-02-07 18:47:04 +00:00
Greg Sabino Mullane
08c988064a Rules to allow deletion from archive[2] 2007-02-07 18:13:00 +00:00
Greg Sabino Mullane
29abbb2c21 Whitespace fixing, change to_date to to_timestamp for archive rule 2007-02-07 16:02:21 +00:00
Greg Sabino Mullane
153e82e75d Refactor versioning from setup and store number internally.
Move tsearch indexes out of tables.sql and put into setup, so 
that we can take advantage of GIN for >= 8.2
2007-01-16 04:04:55 +00:00
Greg Sabino Mullane
48df6bc4ee Add index on rev_text_id to help speed up full text searches. 2007-01-15 22:49:51 +00:00