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
Greg Sabino Mullane
5aff55cdd5
Add page_restrictions table.
2007-01-11 15:57:41 +00:00
Leon Weber
6061d1db2c
* Fixed the default for recentchanges.rc_*_len to NULL on postgre as it should be
2006-12-14 15:34:56 +00:00
Brion Vibber
288a7eb7f1
Going ahead and adding this field while other DB updates are pending.
...
Interfaces to use it can be added shortly.
* Add user_editcount field to provide data for heuristics on account use.
Incremented on edit, with lazy initialization from past revision data.
Can batch-initialize with maintenance/initEditCount.php (not yet friendly
to replication environments, this will do all accounts in one query).
* Allow raw SQL subsections in Database::update() SET portion as well as
for WHERE portion. Handy for increments and such.
2006-12-14 13:22:52 +00:00
Brion Vibber
fc39e18f0e
* (bug 8255) fix regression in postgres tables.sql
2006-12-14 10:55:23 +00:00
Leon Weber
7531338080
* DB schema change: added two columns (rc_old_len and rc_new_len) to the recentchanges table to store
...
the text lengths before and after the edit
* (bug 1085) Made Special:Recentchanges show the character difference between the changed revisions
2006-12-09 11:36:35 +00:00
Greg Sabino Mullane
7764aac112
Change ipb_address to text due to recent report.
2006-11-06 02:31:59 +00:00
Greg Sabino Mullane
f30fc93fc1
Add enable_autoblock column.
2006-11-01 14:18:33 +00:00
Greg Sabino Mullane
b8f8333edc
Duplicate column.
2006-10-31 15:53:19 +00:00
Greg Sabino Mullane
1b9821bc20
Make sure users cannot be deleted unless they have done no editing.
2006-10-30 01:04:00 +00:00
Greg Sabino Mullane
7e84b58dab
Add "redirect" and "querycachetwo" tables.
2006-10-25 16:26:57 +00:00
Tim Starling
e9de4983bf
Added a per-user limit on password reminder emails. Presumably if you just had a password reminder sent to you, you don't need another one a short time later. Along with a proper per-IP throttle setting, this should fix the majority of the abuse problem on Wikipedia.
2006-10-23 09:35:30 +00:00