Skip to content

Commit e1313c9

Browse files
committed
[UPD] added some more direct scripts
[FIX] down command tries all services and up in downup fails (cherry picked from commit 0e8fd57)
1 parent 435e489 commit e1313c9

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

bin/createdb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
echo "CREATE DATABASE $1 CHARACTER SET ${2:-"utf8"} COLLATE ${3:-"utf8_general_ci"};" \
3+
| `dirname $0`/dev myroot
4+
#exit $?

bin/dev_command/down

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
dc yml_all;
2+
#dc yml_all;
33
dc mode 'down -v';
44

55
dc run "$@";

bin/dropdb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
echo "DROP DATABASE $1;" \
3+
| `dirname $0`/dev myroot
4+
#exit $?

bin/myroot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
`dirname $0`/dev `basename $0` "$@"
3+
exit $?

0 commit comments

Comments
 (0)