Login password min length, boolean default set if empty

Also remove all inserts from the table declaration and add them in a
separate file instead

Add add/remove css to element for the element js declarations
This commit is contained in:
Clemens Schwaighofer
2018-07-04 18:58:07 +09:00
parent e3d1679f86
commit bddc196e25
32 changed files with 99 additions and 159 deletions

View File

@@ -1,11 +1,8 @@
-- adds the created or updated date tags
CREATE OR REPLACE FUNCTION set_generic() RETURNS TRIGGER AS '
DECLARE
random_length INT = 12; -- that should be long enough
BEGIN
IF TG_OP = ''INSERT'' THEN
NEW.date_created := ''now'';
NEW.cuid := random_string(random_length);
ELSIF TG_OP = ''UPDATE'' THEN
NEW.date_updated := ''now'';