]> andersk Git - moira.git/blobdiff - db/db2tbls_sql.awk
Initial revision
[moira.git] / db / db2tbls_sql.awk
index 7e072a0cbf2d7076b324b00c48705884ee1b8cdd..66e3c91d60e5979de1255d2906355cbe7bcbbb97 100644 (file)
@@ -4,12 +4,12 @@
 #      This converts the file used to originally create the database
 #      into a list of tables.
 
-BEGIN { print "/* This file automatically generated */";
+BEGIN { print "/* This file is automatically generated */";
        print "/* Do not edit */";
        print "char *tables[] = {";
 }
 
-/^create/ { printf "   \"%s\",\n", $2; }
+/^CREATE TABLE/ { printf "     \"%s\",\n", $3; }
 
 END   { print "        0,";
        print "};"; }
This page took 0.030576 seconds and 4 git commands to generate.