mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-12 06:22:27 +08:00
up
This commit is contained in:
18
misc/db/dump-struct.sh
Executable file
18
misc/db/dump-struct.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
DB="orca"
|
||||
|
||||
DIR="$(dirname "$(readlink -f "$0")")" && cd "$DIR" || exit 1
|
||||
|
||||
/usr/bin/mysqldump \
|
||||
--no-data \
|
||||
--default-character-set=binary \
|
||||
--add-drop-database \
|
||||
--add-drop-table \
|
||||
--add-locks \
|
||||
--hex-blob \
|
||||
--quick \
|
||||
--skip-dump-date \
|
||||
--databases "$DB" \
|
||||
| sed 's# AUTO_INCREMENT=[0-9]*##g' \
|
||||
> "${DB}-struct.sql"
|
||||
Reference in New Issue
Block a user