Add ar_id and el_id sequences for PostgreSQL
authorsaper <saper@saper.info>
Mon, 28 Oct 2013 22:08:52 +0000 (23:08 +0100)
committerPleaseStand <pleasestand@live.com>
Mon, 28 Oct 2013 22:32:07 +0000 (22:32 +0000)
PostgreSQL needs sequences created before nextval
is used as the default value, populating newly
created fields.

Followup to: Ib6b0fc3736d173fa4ba7b786ecfc710b2f4711bb

Bug: 15441
Bug: 39675
Bug: 56185
Change-Id: Ia21d5bddead257a33a13e3ff2ec508041843613b

includes/installer/PostgresUpdater.php

index 32e7510..cea4d78 100644 (file)
@@ -66,6 +66,8 @@ class PostgresUpdater extends DatabaseUpdater {
                        array( 'addSequence', 'logging', false, 'logging_log_id_seq' ),
                        array( 'addSequence', 'page_restrictions', false, 'page_restrictions_pr_id_seq' ),
                        array( 'addSequence', 'filearchive', 'fa_id', 'filearchive_fa_id_seq' ),
+                       array( 'addSequence', 'archive', false, 'archive_ar_id_seq' ),
+                       array( 'addSequence', 'externallinks', false, 'externallinks_el_id_seq' ),
 
                        # new tables
                        array( 'addTable', 'category', 'patch-category.sql' ),