PHP Classes

File: SQL File

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   database/migrations/v1.10.17.2_guest_user_anonymous_doors.sql   Download  
File: database/migrations/v1.10.17.2_guest_user_anonymous_doors.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 581 bytes
 

Contents

Class file image Download
-- Migration: 1.10.18 - Guest system user and anonymous door session support -- -- Adds is_system flag to users table and inserts the shared _guest account -- used for anonymous native door sessions. System users cannot log in and -- are excluded from admin user lists. ALTER TABLE users ADD COLUMN IF NOT EXISTS is_system BOOLEAN NOT NULL DEFAULT FALSE; -- Insert the shared guest system user (no password, cannot log in) INSERT INTO users (username, password_hash, real_name, is_active, is_system) VALUES ('_guest', '', 'Guest', FALSE, TRUE) ON CONFLICT (username) DO NOTHING;