Skip to content

Commit

Permalink
Implemented development.sql(oscar db) and development-drugref.sql (dr…
Browse files Browse the repository at this point in the history
…ugref2 db), cleaned-up data in oscar db.
  • Loading branch information
kateyang1998 authored and Wrekky committed Aug 13, 2024
1 parent 3fab3dd commit e130ebb
Show file tree
Hide file tree
Showing 4 changed files with 27,669 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/db/scripts/populate_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ echo 'Creating development database...'
./createdatabase_on.sh root password oscar
echo 'Creating test database...'
./createdatabase_on.sh root password oscar_test
echo 'Creating drugref2 database...'
mysql -u root -ppassword drugref2 < /database/mysql/development-drugref.sql
cd ../../
4 changes: 2 additions & 2 deletions database/mysql/createdatabase_generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ echo "grant all on $DATABASE_NAME.* to $USER@localhost identified by \"$PASSWORD
echo 'updating character set to utf8'
echo "alter database $DATABASE_NAME DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci" | $mysql_cmd

echo 'loading oscarinit.sql...'
$mysql_cmd < oscarinit.sql
echo 'loading development.sql...'
$mysql_cmd < development.sql
echo "loading oscarinit_$LOCATION.sql..."
$mysql_cmd < oscarinit_$LOCATION.sql
echo 'loading oscardata.sql...'
Expand Down
571 changes: 571 additions & 0 deletions database/mysql/development-drugref.sql

Large diffs are not rendered by default.

Loading

0 comments on commit e130ebb

Please sign in to comment.