PHP Classes

File: src/Installer/sql/pgsql/12-permissions.sql

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Installer/sql/pgsql/12-permissions.sql   Download  
File: src/Installer/sql/pgsql/12-permissions.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: Fix Installer bugs. See #134
Merge pull request #112 from UmeshAawte/master

No need of border if using shadow
Date: 7 years ago
Size: 1,627 bytes
 

Contents

Class file image Download
CREATE TABLE IF NOT EXISTS airship_perm_actions ( actionid BIGSERIAL PRIMARY KEY, cabin TEXT NOT NULL, label TEXT NOT NULL, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW(), UNIQUE(cabin, label) ); CREATE TABLE IF NOT EXISTS airship_perm_contexts ( contextid BIGSERIAL PRIMARY KEY, cabin TEXT NOT NULL, locator TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW(), UNIQUE(cabin, locator) ); CREATE TABLE IF NOT EXISTS airship_perm_rules ( ruleid BIGSERIAL PRIMARY KEY, context INTEGER NOT NULL, action INTEGER NOT NULL, userid INTEGER NULL, groupid INTEGER NULL, CHECK((userid IS NULL) != (groupid IS NULL)), FOREIGN KEY(context) REFERENCES airship_perm_contexts (contextid), FOREIGN KEY(action) REFERENCES airship_perm_actions (actionid) ); CREATE INDEX airship_perm_actions_label_idx ON airship_perm_actions (label); DROP TRIGGER IF EXISTS update_airship_perm_actions_modtime ON airship_perm_actions; CREATE TRIGGER update_airship_perm_actions_modtime BEFORE UPDATE ON airship_perm_actions FOR EACH ROW EXECUTE PROCEDURE update_modtime(); DROP TRIGGER IF EXISTS update_airship_perm_contexts_modtime ON airship_perm_contexts; CREATE TRIGGER update_airship_perm_contexts_modtime BEFORE UPDATE ON airship_perm_contexts FOR EACH ROW EXECUTE PROCEDURE update_modtime(); DROP TRIGGER IF EXISTS update_airship_perm_rules_modtime ON airship_perm_rules; CREATE TRIGGER update_airship_perm_rules_modtime BEFORE UPDATE ON airship_perm_rules FOR EACH ROW EXECUTE PROCEDURE update_modtime();