projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add usersnet_narrowfriend view
[brisk.git]
/
sql
/
sql.d
/
001-struct.sql
diff --git
a/sql/sql.d/001-struct.sql
b/sql/sql.d/001-struct.sql
index
302804e
..
fa1dc86
100644
(file)
--- a/
sql/sql.d/001-struct.sql
+++ b/
sql/sql.d/001-struct.sql
@@
-2,7
+2,7
@@
-- DONE - CASCADE ON DELETE of orders related tables
-- DONE - STATUS on orders
-- DONE - CASCADE ON DELETE of orders related tables
-- DONE - STATUS on orders
-DROP TABLE #PFX#users;
+DROP TABLE
IF EXISTS
#PFX#users;
CREATE TABLE #PFX#users (
code SERIAL PRIMARY KEY,
login text UNIQUE,
CREATE TABLE #PFX#users (
code SERIAL PRIMARY KEY,
login text UNIQUE,
@@
-13,7
+13,7
@@
CREATE TABLE #PFX#users (
mtime timestamp DEFAULT to_timestamp(0) -- last access
);
mtime timestamp DEFAULT to_timestamp(0) -- last access
);
-DROP TABLE #PFX#groups;
+DROP TABLE
IF EXISTS
#PFX#groups;
CREATE TABLE #PFX#groups (
code SERIAL PRIMARY KEY,
name text
CREATE TABLE #PFX#groups (
code SERIAL PRIMARY KEY,
name text