PHP Classes

File: src/Installer/sql/pgsql/60-peer-verification.sql

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Installer/sql/pgsql/60-peer-verification.sql   Download  
File: src/Installer/sql/pgsql/60-peer-verification.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: Fixed the wrong thing
How did I miss this file?
Blind search+replace is bad.
Add 'IF NOT EXISTS' clauses (requires PostgreSQL 9.5)
Date: 7 years ago
Size: 688 bytes
 

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS airship_tree_updates ( treeupdateid BIGSERIAL PRIMARY KEY, channel TEXT, channelupdateid BIGINT, data TEXT, merkleroot TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE INDEX ON airship_tree_updates (channel); CREATE INDEX ON airship_tree_updates (channelupdateid); CREATE UNIQUE INDEX ON airship_tree_updates (channel, channelupdateid); CREATE INDEX ON airship_tree_updates (merkleroot); DROP TRIGGER IF EXISTS update_airship_tree_updates_modtime ON airship_tree_updates; CREATE TRIGGER update_airship_tree_updates_modtime BEFORE UPDATE ON airship_tree_updates FOR EACH ROW EXECUTE PROCEDURE update_modtime();