This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/sql/beta5/structure/00-rule-base.sql

25 lines
569 B
SQL

-- LegacyWorlds Beta 5
-- PostgreSQL database scripts
--
-- beta5/structure/00-rule-base.sql
--
-- Beta 5 games:
-- Base tables for the rule system
--
-- Copyright(C) 2004-2007, DeepClone Development
-- --------------------------------------------------------
CREATE TABLE rule_def (
name VARCHAR(32) NOT NULL PRIMARY KEY,
value INT NOT NULL
);
GRANT SELECT ON rule_def TO legacyworlds;
CREATE TABLE rule_handler (
rule VARCHAR(32) NOT NULL PRIMARY KEY REFERENCES rule_def (name),
handler VARCHAR(32) NOT NULL
);
GRANT SELECT ON rule_handler TO legacyworlds;