This file contains 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
Action | BACKWARD TRANSITIVE | FORWARD TRANSITIVE | FULL TRANSITIVE | |
---|---|---|---|---|
Can I add a new field with a default value? | Yes | Yes | Yes | |
Can I add a new field without a default value? | No | Yes | No | |
Can I remove an existing field with a default value? | Yes | Yes | Yes | |
Can I remove an existing field without a default value? | Yes | No | No | |
Can I rename an existing field with an alias? | Yes | Yes | Yes | |
Can I rename an existing field without an alias? | No | No | No | |
Can I add a default value to an existing field? | Maybe | Maybe | Maybe | |
Can I remove a default from an existing field? | Maybe | Maybe | Maybe | |
Can I make an existing field nullable? | Yes | No | No |
This file contains 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
Sybmol | Meaning | |
---|---|---|
⬇️ | Step can be skipped | |
✅ | Compatible change | |
🚫 | Incompatible change | |
BW / FW / FU | BACKWARDS / FORWARDS / FULL compatibility modes | |
BWT / FWT / FUT | BACKWARDS / FORWARDS / FULL TRANSITIVE compatibility modes |
This file contains 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
Step | BW | FW | FU | BWT | FWT | FUT | |
---|---|---|---|---|---|---|---|
Step 1 - Add default to existing field | ⬇️ | ✅ | ✅ | ⬇️ | ✅ | ✅ | |
Step 2 - Add new field | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
Step 3 - Remove existing field | ✅ | ✅ | ✅ | ✅ | 🚫 | 🚫 | |
Step 4 - Remove default from new field | ✅ | ⬇️ | ✅ | 🚫 | 🚫 | 🚫 | |
Step 5 - Rename new field | ✅ | ✅ | ✅ | 🚫 | 🚫 | 🚫 |
This file contains 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
intentionally-blank |
This file contains 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
package com.hotels.plunger; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertThat; | |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.Rule; |
This file contains 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
#!/bin/bash | |
delim=$1 | |
for file in *.tsv | |
do | |
name=${file%.tsv} | |
columns=`head -n1 $file` | |
echo -n "CREATE TABLE $name (" | |
arr=$(echo $columns | tr $delim "\n") | |
first=1 |
This file contains 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
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: `basename $0` {dot file}" | |
exit -1 | |
fi | |
FILE=$1 | |
NAME=${FILE%.dot} |
This file contains 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
[user] | |
name = Elliot West | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
glog = log --graph --pretty=oneline --abbrev-commit --decorate --stat | |
st = status | |
ci = commit | |
br = branch |
This file contains 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
#!/bin/sh | |
curl -s "http://mywiki.me/wiki/DataFlow" > dataflow_page.html | |
awk '/# BEGIN/,/# END/{if(!/pattern/)print}' dataflow_page.html | \ | |
awk '{gsub(">", ">", $0);print}' | \ | |
awk '{gsub(""", "\"", $0);print}' | \ | |
awk '{gsub("<", "<", $0);print}' > dataflow.dot | |
EPOCH=`date +"%s"` | |
dot -Tpng dataflow.dot -o dataflow-${EPOCH}.png | |
gimp dataflow-${EPOCH}.png |
This file contains 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
package my.project.hibernate; | |
import javax.transaction.UserTransaction; | |
import org.hibernate.transaction.JTATransactionFactory; | |
/** | |
* A Hibernate {@link JTATransactionFactory} implementation that avoids using JNDI for lookups. You must set the | |
* {@link UserTransaction} on this bean with #setUserTransaction(UserTransaction)} before using it. | |
*/ |
NewerOlder