Add field to choose password type to reset
Dependencies
- [2]
IXY6NZLMStart to use migrations files for PostgreSQL database
Change contents
- file addition: 20220916_0_reset-password-type.sql[2.15]
-- Add field to choose password type to resetDO $$BEGINIF NOT EXISTS (SELECT 1 FROM pg_class cINNER JOIN pg_namespace n ON n.oid = c.relnamespaceINNER JOIN pg_attribute a ON a.attrelid = c.oidWHERE c.relname = 'reset_tokens' AND n.nspname = 'auth' AND a.attname = 'is_game_pwd') THENALTER TABLE auth.reset_tokens ADD COLUMN is_game_pwd BOOLEAN NOT NULL DEFAULT TRUE;END IF;END$$;