1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
|
3 |
|
# read sql settings from configuration file |
4 |
|
if [ -f ./conf/mcore-sql-schema.conf ] |
5 |
|
then |
6 |
|
source ./conf/mcore-sql-schema.conf |
7 |
|
fi |
8 |
|
|
9 |
# include everything from include |
# include everything from include |
10 |
for inc in $(find ./include -type f -name \*.sh) |
for inc in $(find ./include -type f -name \*.sh) |
11 |
do |
do |
339 |
|
|
340 |
create_database() |
create_database() |
341 |
{ |
{ |
342 |
|
echo "Creating database schema version ${MCORE_SQL_DB_SCHEMA_VERSION}" |
343 |
create_database_schema |
create_database_schema |
344 |
|
|
345 |
# update database schema version |
# update database schema version |