mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-03 20:36:29 +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
15 lines
351 B
SQL
15 lines
351 B
SQL
define mw_prefix='{$wgDBprefix}';
|
|
|
|
CREATE SEQUENCE oathauth_users_id_seq;
|
|
CREATE TABLE &mw_prefix.oathauth_users (
|
|
-- User ID
|
|
id NUMBER NOT NULL,
|
|
|
|
-- Secret key
|
|
secret VARCHAR2(255) NULL,
|
|
|
|
-- Scratch tokens
|
|
scratch_tokens varbinary(511) NULL
|
|
|
|
);
|
|
ALTER TABLE &mw_prefix.oathauth_users ADD CONSTRAINT &mw_prefix.oathauth_users_pk PRIMARY KEY (id); |