Fix spelling typo in javadoc of AllPrivileges

Change-Id: Idb122e72143dc532db6d7bf8099a2d89810ad4b0
Fix a few javadoc @param typos

Change-Id: Idb47a71107f27190873bb327a57d7e8b820d10bd
Remove a few unused imports

Change-Id: Ida5d76b561f82727f22efc612f8b20d43ed3b52b
Declare Unit returning methods with empty parens

Unit returning methods should be declared with empty parens () to indicate that
they have side-effects.  See
http://docs.scala-lang.org/style/naming-conventions.html#parentheses for more
info.

Change-Id: I2343fa7db9ceaa611d142a01c5214ea846fedfe5
Rename test method

Rename a test method so it that doesn't follow the getter convention of starting
with 'get'.

Change-Id: I54ecf91833afd86359315bd6ba9b508c3e5db3ac
Use name vs. email in CHANGES document

Change-Id: Id0bb9666901bba219c88ac1ad31a53fa02a9354c
Add support for running tests against PostgreSQL.

Change-Id: I6a48ccfb67907d1da2f046e2cfaf0c294f23026a
Grant and revoke usage privilege for PostgreSQL.

PostgreSQL requires first granting the usage privilege on a schema
before a user can utilize any privileges granted to other DB entities
such as tables or sequences.  To address this, explicitly grant the
USAGE privilege on migrate up and explicitly drop the USAGE privilege
on migrate down in the grants test migration.

Change-Id: Ifbaf940748acdbcb69bf29af0761a2a3d194aa0e
Refactor MigrationTests#runSelect() to be formatted cleaner.

Change-Id: I4d71bb0b88b0ac85f9ab2ea03ce6765bc76b6060
Call methods with side-effects with empty parens

Use empty parens () when calling a method with side-effects.

http://docs.scala-lang.org/style/method-invocation.html#arity0

Change-Id: I5c9489b18656b30f2b26bf74207a97f79c7839fd
Call PreparedStatement#{execute,executeUpdate} with ().

Since the specific uses of PreparedStatement#{execute,executeUpdate}
that do not use () do have side-effects, use ().

Change-Id: I99634b46dd87f931d155dd18da69f0ebaeec2379
Rename TestDatabase object's vals.

Change-Id: I1126923145beb16c22eb5aa80a484023df6dbe0a
Document PostgreSQL commands to create the unit test database.

Change-Id: Ie85d6ef130954b51908915041e71753accfdc931
Switch PostgreSQL unit tests to "public" schema to fix failures.

With the previous configuration, the PostgreSQL unit tests used a
database named "test" and a schema named "test".  However, even after
creating the "test" schema in the "test" database the unit tests
failed with the below exception.

Without qualifying a table's name with the schema name, PostgreSQL
defaults to using the "public" schema, so while migrations were
properly creating tables in the "test" schema some unit tests were
failing because they were using bare table names which defaulted to
being in the "public" schema.

1) Add a new "scala-migrations.db.db" Java property with the name of
   the database to use; defaults to "test".
2) For the PostgreSQL configuration, change the default value of the
   "scala-migrations.db.schema" Java property to "public".

[info] Test com.imageworks.migration.tests.MigrationTests.duplicateDescriptionsThrows started
[error] Test com.imageworks.migration.tests.MigrationTests.duplicateDescriptionsThrows failed: Unexpected exception, expected<com.imageworks.migration.DuplicateMigrationDescriptionException> but was<org.postgresql.util.PSQLException>
[error]     at com.novocode.junit.JUnitRunner.run(JUnitRunner.java:89)
[error]     at sbt.TestRunner.delegateRun(TestFramework.scala:58)
[error]     at sbt.TestRunner.run(TestFramework.scala:51)
[error]     at sbt.TestRunner.runTest$1(TestFramework.scala:71)
[error]     at sbt.TestRunner.run(TestFramework.scala:80)
[error]     at sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:178)
[error]     at sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:178)
[error]     at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:190)
[error]     at sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:178)
[error]     at sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:178)
[error]     at sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:121)
[error]     at sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:121)
[error]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
[error]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
[error]     at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[error]     at scala.collection.immutable.List.foreach(List.scala:76)
[error]     at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
[error]     at scala.collection.immutable.List.map(List.scala:76)
[error]     at sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:121)
[error]     at sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:121)
[error]     at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
[error]     at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
[error]     at sbt.std.Transform$$anon$5.work(System.scala:71)
[error]     at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
[error]     at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
[error]     at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
[error]     at sbt.Execute.work(Execute.scala:238)
[error]     at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
[error]     at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
[error]     at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
[error]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
[error]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[error]     at java.lang.Thread.run(Thread.java:662)
[error] Caused by: org.postgresql.util.PSQLException: ERROR: schema "test" does not exist
[error]     at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
[error]     at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
[error]     at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
[error]     at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
[error]     at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
[error]     at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
[error]     at net.sf.log4jdbc.StatementSpy.execute(StatementSpy.java:813)
[error]     at com.imageworks.migration.Migration$$anonfun$execute$1.apply(Migration.scala:199)
[error]     at com.imageworks.migration.Migration$$anonfun$execute$1.apply(Migration.scala:198)
[error]     at com.imageworks.migration.With$.resource(With.scala:77)
[error]     at com.imageworks.migration.With$.autoClosingStatement(With.scala:221)
[error]     at com.imageworks.migration.Migration.execute(Migration.scala:198)
[error]     at com.imageworks.migration.Migration.createTable(Migration.scala:253)
[error]     at com.imageworks.migration.CreateSchemaMigrationsTableMigration.up(Migrator.scala:62)
[error]     at com.imageworks.migration.Migrator$$anonfun$com$imageworks$migration$Migrator$$runMigration$1.apply(Migrator.scala:557)
[error]     at com.imageworks.migration.Migrator$$anonfun$com$imageworks$migration$Migrator$$runMigration$1.apply(Migrator.scala:551)
[error]     at com.imageworks.migration.Migrator$$anonfun$withConnections$1.apply(Migrator.scala:504)
[error]     at com.imageworks.migration.Migrator$$anonfun$withConnections$1.apply(Migrator.scala:499)
[error]     at com.imageworks.migration.With$$anonfun$autoCommittingConnection$1.apply(With.scala:175)
[error]     at com.imageworks.migration.With$$anonfun$autoCommittingConnection$1.apply(With.scala:172)
[error]     at com.imageworks.migration.With$$anonfun$autoRestoringConnection$2.apply(With.scala:144)
[error]     at com.imageworks.migration.With$$anonfun$autoRestoringConnection$2.apply(With.scala:142)
[error]     at com.imageworks.migration.With$.resource(With.scala:77)
[error]     at com.imageworks.migration.With$.autoRestoringConnection(With.scala:142)
[error]     at com.imageworks.migration.With$.autoCommittingConnection(With.scala:172)
[error]     at com.imageworks.migration.ConnectionBuilder$$anonfun$withConnection$1.apply(ConnectionBuilder.scala:112)
[error]     at com.imageworks.migration.ConnectionBuilder$$anonfun$withConnection$1.apply(ConnectionBuilder.scala:111)
[error]     at com.imageworks.migration.With$.resource(With.scala:77)
[error]     at com.imageworks.migration.With$.autoClosingConnection(With.scala:116)
[error]     at com.imageworks.migration.ConnectionBuilder.withConnection(ConnectionBuilder.scala:111)
[error]     at com.imageworks.migration.Migrator.withConnections(Migrator.scala:499)
[error]     at com.imageworks.migration.Migrator.com$imageworks$migration$Migrator$$runMigration(Migrator.scala:551)
[error]     at com.imageworks.migration.Migrator.initializeSchemaMigrationsTable(Migrator.scala:602)
[error]     at com.imageworks.migration.Migrator.migrate(Migrator.scala:671)
[error]     at com.imageworks.migration.tests.MigrationTests.duplicateDescriptionsThrows(MigrationTests.scala:93)
[error]     ...
[info] Test com.imageworks.migration.tests.MigrationTests.duplicateVersionsThrows started

Change-Id: Idf79ebfa3b2a46616ef5e83d9d1f6765fa9e1a93
README: s/1.0.3/1.1.0/g.

Change-Id: I4131347a09a19016e9203f3351873b9c89ced6bb
MySQL unit tests switch to using "scala-migrations.db.db" prop.

Unlike PostgreSQL, MySQL does not have a separate distinction between
databases and schemas, for MySQL they are the same.  Since MySQL uses
the term database instead of schema, use the "scala-migrations.db.db"
property name instead of the "scala-migrations.db.schema" property
name.

Change-Id: Id3dd81ceddfbe520a6aa99df78532f01c5a900e0