Fix Oracle installation SQL
authorFreakolowsky <freak@drajv.si>
Fri, 23 Aug 2013 08:48:59 +0000 (10:48 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Oct 2013 19:35:28 +0000 (20:35 +0100)
commitfba1b4f4930390bbbe63b5e5b59b29f1f437e3fa
treed457d81d78b2c5b47f49d2fc3bd4833b2a2cab06
parenta46b589d88eda159e381571841c318307c40e463
Fix Oracle installation SQL

The starting and minimal values of sequences on Oracle are both '1' by
default. We want a user with id of 0 (used for anonymous edits), so
these were both set to '0' and the user was inserted with its id being
the next value in the sequence.

However, due to some low level caching settings you can miss the first
value in a sequence. It makes no difference to other sequences, but it
does with this one, as it must be 0 to maintain foreign key validity.
Therefore let's just set the sequence to default starting value of '1'
and insert the user with hardcoded id=0.

Bug: 38411
Change-Id: Ic9a17b92d6052fbdc24dd431726e4d82dbf48034
maintenance/oracle/tables.sql