https://github.com/ninest/gh-ost-test
https://github.com/ninest/gh-ost-test
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ninest/gh-ost-test
- Owner: ninest
- Created: 2022-06-06T11:01:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T11:01:55.000Z (about 4 years ago)
- Last Synced: 2025-02-25T02:17:41.183Z (over 1 year ago)
- Language: Shell
- Size: 4.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Add the column:
```
./gh-ost --user="root" --password="password" --host=localhost --database="school" --table="students" --verbose --alter="alter table students add column phone varchar(15);" --hooks-path=./hooks --allow-on-master
```
Remove the column:
```
./gh-ost --user="root" --password="password" --host=localhost --database="school" --table="students" --verbose --alter="alter table students drop phone;" --hooks-path=./hooks --allow-on-master
```
Make hooks executable with `chmod a+x ./hooks/gh-ost-on-hook`