PHP Classes

File: src/Installer/sql/pgsql/70-logging.sql

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Installer/sql/pgsql/70-logging.sql   Download  
File: src/Installer/sql/pgsql/70-logging.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: 619 bytes
 

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS airship_continuum_log ( logid BIGSERIAL PRIMARY KEY, loglevel TEXT, component TEXT, message TEXT, context JSONB, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE INDEX ON airship_continuum_log (component); CREATE INDEX ON airship_continuum_log (created); CREATE INDEX ON airship_continuum_log (loglevel); DROP TRIGGER IF EXISTS update_airship_continuum_log_modtime ON airship_continuum_log; CREATE TRIGGER update_airship_continuum_log_modtime BEFORE UPDATE ON airship_continuum_log FOR EACH ROW EXECUTE PROCEDURE update_modtime();