mediawiki-extensions-OATHAuth/sql/sqlite/patch-remove_module_specific_fields.sql
Reedy 9952cf8ee6 Make SQLite compatible patches
Bug: T264492
Change-Id: I622b177015740ca5f6f625250efa3d4ad71be448
2020-10-04 20:40:27 +00:00

18 lines
371 B
SQL

CREATE TABLE /*_*/oathauth_users_tmp (
-- User ID
id int not null primary key,
-- Module user has selected
module text not null,
-- Data
data blob null
);
INSERT INTO /*_*/oathauth_users_tmp (id, module, data)
SELECT id, module, data FROM /*_*/oathauth_users;
DROP TABLE /*_*/oathauth_users;
ALTER TABLE /*_*/oathauth_users_tmp RENAME TO /*_*/oathauth_users;