mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-18 14:48:42 -05:00
reset database syntax contains check, so as it ccan be used to create the database for the first time
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
read -s -p "Enter Password: " mypassword
|
||||
mysql -u root -p"$mypassword" -e "use ospos; drop database ospos; create database ospos;"
|
||||
mysql -u root -p"$mypassword" -e "DROP DATABASE IF EXISTS ospos; CREATE DATABASE ospos;"
|
||||
[ ! -z $1 ] && script=migrate_phppos || script=database
|
||||
mysql -u root -p"$mypassword" -e "use ospos; source $script.sql;"
|
||||
mysql -u root -p"$mypassword" -e "USE ospos; source $script.sql;"
|
||||
|
||||
Reference in New Issue
Block a user