PHP Classes

File: src/Installer/sql/pgsql/41-account-recovery.sql

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Installer/sql/pgsql/41-account-recovery.sql   Download  
File: src/Installer/sql/pgsql/41-account-recovery.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: PHPStorm only committed one file -_-
Add 'IF NOT EXISTS' clauses (requires PostgreSQL 9.5)
Date: 7 years ago
Size: 537 bytes
 

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS airship_user_recovery ( tokenid BIGSERIAL PRIMARY KEY, userid BIGINT REFERENCES airship_users(userid), selector TEXT, hashedtoken TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE INDEX ON airship_user_recovery (selector); DROP TRIGGER IF EXISTS update_airship_user_recovery_modtime ON airship_user_recovery; CREATE TRIGGER update_airship_user_recovery_modtime BEFORE UPDATE ON airship_user_recovery FOR EACH ROW EXECUTE PROCEDURE update_modtime();