-
Notifications
You must be signed in to change notification settings - Fork 44
BUGS-6563: Add primary key if necessary #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
0a0b5a5
BUGS-6563: Provides command to add a Primary Key table and notice to …
c11a633
BUGS-6563: Linting.
0efa954
BUGS-6563: Updates composer.lock.
6ead493
BUGS-6563: Testing addition of WP-CLI tests.
cea6bff
BUGS-6563: Tests STDOUT testing.
6c47e70
Revert "BUGS-6563: Tests STDOUT testing."
deb3cf4
Revert "BUGS-6563: Testing addition of WP-CLI tests."
85db732
BUGS-6563: Adds unit tests.
e59e8a6
BUGS-6563: Adds unit tests.
2d63ca9
BUGS-6563: Adds unit tests.
e05b096
BUGS-6563: Adds unit tests.
c951790
BUGS-6563: Adds unit tests.
a319cc2
BUGS-6563: Adds unit tests.
4dbfbc0
BUGS-6563: Adds unit tests.
535d9fd
BUGS-6563: Adds unit tests.
3b52166
BUGS-6563: Remove tests to check if they're causing other errors
94076eb
BUGS-6563: Add tests back somewhere else.
130c3a6
BUGS-6563: tweaks test parameters
13f40c4
BUGS-6563: debug info
6aaf554
BUGS-6563: debug info
a389725
BUGS-6563: adds finalize
07a3128
BUGS-6563: more debug
7972051
BUGS-6563: more debug
a8f2e09
BUGS-6563: more debug
0d7433e
BUGS-6563: more debug
9963c97
BUGS-6563: more debug
e8f8051
BUGS-6563: more debug
fd7e5d6
BUGS-6563: more debug
46d84e3
BUGS-6563: more debug
9382154
BUGS-6563: more debug
821d609
BUGS-6563: more debug
2d7a466
BUGS-6563: more debug
4fbd432
BUGS-6563: more debug
a36d720
BUGS-6563: Cleaning up debug
74e2965
BUGS-6563: Cleaning up debug
2c88a9d
BUGS-6563: debug again.
4c5f8a2
BUGS-6563: debug again.
d6e2a8c
BUGS-6563: debug again.
5da54c2
BUGS-6563: debug again.
8d219bb
BUGS-6563: change table name
2cf3bed
BUGS-6563: change table name
0c10e37
BUGS-6563: change table name
1f6b06d
BUGS-6563: adds back conditional fixing
6f3b9d3
BUGS-6563: let it fail.
57f8027
BUGS-6563: let it pass?
143d9ac
BUGS-6563: multisite only
c287d98
BUGS-6563: ALL THE THINGS
a9e3883
BUGS-6563: remove my test
4d99edc
BUGS-6563: remove my test
d07dd3d
BUGS-6563: only run one test
1865cdc
BUGS-6563: space is not equals
c9b3519
BUGS-6563: group > filter
3334530
BUGS-6563: manual > composer
918c636
BUGS-6563: deparallel?
18ba849
BUGS-6563: deparallel?
6654f96
BUGS-6563: ports changes to 7.x
2ffb777
BUGS-6563: uncomments second batch of tests
6b0b5b0
BUGS-6563: reinstall between tests
bec62fb
BUGS-6563: reinstall between tests
05b0961
BUGS-6563: comment out nightly build
f91af68
BUGS-6563: comment out nightly build
146f8ce
BUGS-6563: adds nightly, removes multisite
4482763
BUGS-6563: adds nightly, removes multisite
1b6e622
BUGS-6563: numbers.
9401532
BUGS-6563: remove multisite again
0254b9c
BUGS-6563: untruth
b577649
BUGS-6563: no more multisite
4945064
BUGS-6563: vanilla, with exclude
3029d28
BUGS-6563: unified test command
40d480e
BUGS-6563: updated version
d493601
BUGS-6563: revert to manual test running
57fd1de
BUGS-6563: revert revert
2bca7c3
BUGS-6563: revert version revert
6f16274
BUGS-6563: drop and create
014348e
BUGS-6563: drop and create
0eff919
BUGS-6563: -y
1f9fb9c
BUGS-6563: -y
9a154a6
BUGS-6563: syntax
f87cb9a
BUGS-6563: Cleanup
8e4ffe5
BUGS-6563: Updates readme and removes vestigial group.
f246d6b
BUGS-6563: Removes update to composer.json.
e57c627
BUGS-6563: Updates version numbers
ca67537
README markdown spacing
pwtyler aad97c0
BUGS-6563: Tweak to trigger build
15c9d0b
Update README.md
rwagner00 571a263
BUGS-6563: Updates README.md
396e5ae
Update pantheon-sessions.php
rwagner00 ac1b253
Update pantheon-sessions.php
rwagner00 d33983a
Update pantheon-sessions.php
rwagner00 018a352
[BUGS-6563]: Alters variable name
cad5438
[BUGS-6563]: Adds upgrade notice.
8e3b563
[BUGS-6563]: Adds specific version number.
7834961
Update tests/phpunit/test-init-plugin.php
rwagner00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| if [ $# -lt 3 ]; then | ||
| echo "usage: $0 <db-name> <db-user> <db-pass> [db-host]" | ||
| exit 1 | ||
| fi | ||
|
|
||
| DB_NAME=$1 | ||
| DB_USER=$2 | ||
| DB_PASS=$3 | ||
| DB_HOST=${4-localhost} | ||
|
|
||
| TMPDIR=${TMPDIR-/tmp} | ||
| WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib} | ||
| WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/} | ||
|
|
||
| file_delete() { | ||
| rm -rf $WP_TESTS_DIR $WP_CORE_DIR | ||
| } | ||
|
|
||
| drop_db() { | ||
|
|
||
| # parse DB_HOST for port or socket references | ||
| local PARTS=(${DB_HOST//\:/ }) | ||
| local DB_HOSTNAME=${PARTS[0]}; | ||
| local DB_SOCK_OR_PORT=${PARTS[1]}; | ||
| local EXTRA="" | ||
|
|
||
| if ! [ -z $DB_HOSTNAME ] ; then | ||
| if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then | ||
| EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp" | ||
| elif ! [ -z $DB_SOCK_OR_PORT ] ; then | ||
| EXTRA=" --socket=$DB_SOCK_OR_PORT" | ||
| elif ! [ -z $DB_HOSTNAME ] ; then | ||
| EXTRA=" --host=$DB_HOSTNAME --protocol=tcp" | ||
| fi | ||
| fi | ||
|
|
||
| # create database | ||
| echo Y | mysqladmin drop $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA | ||
| } | ||
|
|
||
| file_delete | ||
| drop_db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.