mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-28 18:20:13 +00:00
d2097fbcaf
Created patch files for other database types. Note that some types, such as Oracle, are not guaranteed to work, since not even MW core works with them yet anyway. Bug: T67658 Change-Id: Ie9ce8a4d1140d16017c1aa83865f79d8b0986528
19 lines
372 B
PL/PgSQL
19 lines
372 B
PL/PgSQL
BEGIN;
|
|
SET client_min_messages = 'ERROR';
|
|
|
|
DROP SEQUENCE IF EXISTS oathauth_users_id_seq CASCADE;
|
|
|
|
CREATE SEQUENCE oathauth_users_id_seq MINVALUE 0 START WITH 0;
|
|
CREATE TABLE oathauth_users (
|
|
-- User ID
|
|
id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('oathauth_users_id_seq'),
|
|
|
|
-- Secret key
|
|
secret TEXT NULL,
|
|
|
|
-- Scratch tokens
|
|
scratch_tokens TEXT NULL
|
|
|
|
);
|
|
|
|
COMMIT; |