Merge pull request #344 from mozilla/rfk/issue-267

chore(clients): remove deprecated 'whitelisted' column from clients table
This commit is contained in:
Ryan Kelly 2015-10-19 16:02:26 +11:00
Родитель f16fac446c cf16f8a65f
Коммит 270ebf0a30
3 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -6,4 +6,4 @@
// Update this if you add a new patch, and don't forget to update
// the documentation for the current schema in ../schema.sql.
module.exports.level = 11;
module.exports.level = 12;

Просмотреть файл

@ -0,0 +1,5 @@
-- Drop whitelisted column
ALTER TABLE clients DROP COLUMN whitelisted;
UPDATE dbMetadata SET value = '12' WHERE name = 'schema-patch-level';

Просмотреть файл

@ -0,0 +1,6 @@
-- (commented out to avoid accidentally running this in production...)
-- ALTER TABLE clients ADD COLUMN whitelisted BOOLEAN DEFAULT FALSE;
-- UPDATE clients SET whitelisted=trusted;
-- UPDATE dbMetadata SET value = '11' WHERE name = 'schema-patch-level';