s4

changeset 535:d63b9b287ae9

Define VIEW gecoses after all table construction
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 Apr 2019 18:50:23 +0900
parents ce6d0f04f520
children 83a9550ad564
files s4-init.sh
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/s4-init.sh	Sat Apr 06 18:46:10 2019 +0900
     1.2 +++ b/s4-init.sh	Sat Apr 06 18:50:23 2019 +0900
     1.3 @@ -88,6 +88,11 @@
     1.4  SELECT user, tbl, tblrowid, max(time) time FROM tblaccesses
     1.5  GROUP by user, tbl, tblrowid;"
     1.6  
     1.7 +for f in $formdir/*def; do
     1.8 +  echo -n Creating form of $f...
     1.9 +  create_struct $f && echo Done || echo FAILED
    1.10 +done
    1.11 +
    1.12  create view gecoses "AS
    1.13  SELECT rowid,
    1.14         name,
    1.15 @@ -102,9 +107,3 @@
    1.16  FROM (SELECT rowid,'user' type,name FROM user
    1.17  UNION ALL
    1.18  SELECT rowid,'group' type, gname FROM grp) a;"
    1.19 -
    1.20 -
    1.21 -for f in $formdir/*def; do
    1.22 -  echo -n Creating form of $f...
    1.23 -  create_struct $f && echo Done || echo FAILED
    1.24 -done