Skip to content
Snippets Groups Projects
Commit 1c496fc1 authored by tpylak's avatar tpylak
Browse files

minor: fix new db creation scripts

SVN: 22930
parent bfea1c6e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Author: Tomasz Pylak
# Scripts to create new database version, common to all projects.
SQL_DIR=../../source/sql/
# Requires setting SQL_DIR variable before being inlined!
PREV_NUM=`ls -1 $SQL_DIR/postgresql | grep 0 | sort | tail -n 1 | sed s/^0*//g`
PREV_VER=`printf "%03d" $PREV_NUM`
......
......@@ -3,9 +3,10 @@
# Creates new database version (all sql files) which is identical to the previous version.
# Assumes that it is called from the directory where it is located.
SQL_DIR=../../source/sql/
source common.sh
copy_db_folder generic
copy_db_folder postgresql
copy_migration_file
print_finish_message
\ No newline at end of file
print_finish_message
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment