Page MenuHomePhabricator

Fix PostgreSQL support for Sematic MW
Closed, ResolvedPublic

Description

Author: t.glaser

Description:
http://semantic-mediawiki.org/wiki/PostgreSQL says:

select max(smw_id) from smw_ids; -- get value
alter sequence smw_ids_smw_id_seq restart with x + 1 -- value from select above, add 1

You can do it like this, in the code, programmatically, instead:

SELECT setval('smw_ids_smw_id_seq', (SELECT max(smw_id)+1 FROM smw_ids));

We (FusionForge and Evolvis) use PostgreSQL exclusively, as MySQL is not a database. There may be interest in integrating SMW by my employer, which will involve me packaging it for Debian.


Version: unspecified
Severity: trivial

Details

Reference
bz25450

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
InvalidNone
Resolvedmkroetzsch
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz25450.

Changing summary. Trolling doesn't help.

jwm wrote:

Is that initializer query actually necessary anymore? A fresh install of 1.5.4 seemed to work out of the box for me.

I'm not sure about that particular query, but all the stuff is currently in the same script, and this script does need to be run in order to use SMW.

Jdforrester-WMF subscribed.

Migrating from the old tracking task to a tag for PostgreSQL-related tasks.