PHP Classes

File: src/Installer/sql/pgsql/40-user-extra.sql

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

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS airship_user_preferences ( preferenceid BIGSERIAL PRIMARY KEY, userid BIGINT REFERENCES airship_users (userid), preferences JSONB NULL, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); DROP TRIGGER IF EXISTS update_airship_user_preferences_modtime ON airship_user_preferences; CREATE TRIGGER update_airship_user_preferences_modtime BEFORE UPDATE ON airship_user_preferences FOR EACH ROW EXECUTE PROCEDURE update_modtime();