summaryrefslogtreecommitdiff
path: root/scripts/mysql_create_system_tables.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mysql_create_system_tables.sh')
-rw-r--r--scripts/mysql_create_system_tables.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/mysql_create_system_tables.sh b/scripts/mysql_create_system_tables.sh
index c4cdc7b52d7..1600fe051f3 100644
--- a/scripts/mysql_create_system_tables.sh
+++ b/scripts/mysql_create_system_tables.sh
@@ -39,6 +39,7 @@ c_hc=""
c_hr=""
c_hk=""
i_ht=""
+c_p=""
# Check for old tables
if test ! -f $mdata/db.frm
@@ -285,6 +286,22 @@ then
c_hr="$c_hr comment='keyword-topic relation';"
fi
+if test ! -f $mdata/proc.frm
+then
+ c_p="$c_p CREATE TABLE proc ("
+ c_p="$c_p name char(64) binary DEFAULT '' NOT NULL,"
+ c_p="$c_p type enum('function','procedure') NOT NULL,"
+ c_p="$c_p body blob DEFAULT '' NOT NULL,"
+ c_p="$c_p creator char(77) binary DEFAULT '' NOT NULL,"
+ c_p="$c_p modified timestamp,"
+ c_p="$c_p created timestamp,"
+ c_p="$c_p suid enum ('N', 'Y') DEFAULT 'Y' NOT NULL,"
+ c_p="$c_p comment char(64) binary DEFAULT '' NOT NULL,"
+ c_p="$c_p PRIMARY KEY (name,type)"
+ c_p="$c_p )"
+ c_p="$c_p comment='Stored Procedures';"
+fi
+
cat << END_OF_DATA
use mysql;
$c_d
@@ -306,5 +323,8 @@ $c_ht
$c_hc
$c_hr
$c_hk
+
+$c_p
+
END_OF_DATA