extensions/OATHAuth/sql/sqlite/patch-remove_module_specific_fields.sql
raw| 1 | CREATE TABLE /*_*/oathauth_users_tmp ( |
| 2 | -- User ID |
| 3 | id int not null primary key, |
| 4 | |
| 5 | -- Module user has selected |
| 6 | module text not null, |
| 7 | |
| 8 | -- Data |
| 9 | data blob null |
| 10 | ); |
| 11 | |
| 12 | INSERT INTO /*_*/oathauth_users_tmp (id, module, data) |
| 13 | SELECT id, module, data FROM /*_*/oathauth_users; |
| 14 | |
| 15 | DROP TABLE /*_*/oathauth_users; |
| 16 | |
| 17 | ALTER TABLE /*_*/oathauth_users_tmp RENAME TO /*_*/oathauth_users; |