Skip to content

Commit 201ee33

Browse files
Merge pull request #39 from killbill/add-flyway-migrations
Database Setup section and other minor corrections to readme
2 parents 5218234 + ffab2f8 commit 201ee33

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ A full end-to-end integration demo is available [here](https://github.com/killbi
1515

1616
## Requirements
1717

18-
* An active Braintree account is required for using the plugin. A Braintree sandbox account may be used for testing purposes.
19-
* The plugin needs a database. The database tables are automatically created and updated at plugin startup by default. Alternatively, if you would like to manage the database schema manually, you can disable automatic migrations and use the SQL scripts provided in the (https://github.com/killbill/killbill-braintree/tree/master/src/main/resources/migration)[src/main/resources/migration] directory to create or update the database tables as needed. See the [Configuration](#configuration) section below for details about disabling automatic migrations.
18+
* An active Braintree account is required to use the plugin. A Braintree sandbox account may be used for testing purposes.
19+
* The plugin needs a database. The database tables are automatically created and updated at plugin startup by default. Alternatively, if you would like to manage the database schema manually, you can disable automatic migrations and use the SQL scripts provided in the [src/main/resources/migration](https://github.com/killbill/killbill-braintree/tree/master/src/main/resources/migration) directory to create or update the database tables as needed. See the [Database Setup](#database-setup) section below for details about disabling automatic migrations.
2020

2121

2222
## Build
@@ -71,16 +71,12 @@ BRAINTREE_PRIVATE_KEY
7171
Some important notes:
7272

7373
* Use `btEnvironment=sandbox` only for when a sandbox account is used. Other possible values include **development**, **qa**, and **production**. See Braintree documentation for details.
74-
* The plugin attempts to load the credentials either from the per-tenant configuration or the Kill Bill properties file while the unit tests require the properties to be set as environment variables.
74+
* The plugin attempts to load the credentials either from the per-tenant configuration or the Kill Bill properties file while the unit tests require the properties to be set as environment variables.
7575
* In order to facilitate automated testing, you should disable all fraud detection within your sandbox account. These can generate gateway rejection errors when processing multiple test transactions. In particular make sure to disable [Duplicate Transaction Checking](https://articles.braintreepayments.com/control-panel/transactions/duplicate-checking#configuring-duplicate-transaction-checking).
7676

77-
In addition, the `org.killbill.billing.plugin.braintree.runMigrations` property can be used to control Flyway DB migrations at plugin startup. This property eliminates the need to manually install or update the database tables, as the plugin will handle schema setup automatically.
77+
## Database Setup
7878

79-
Default value:
80-
81-
```properties
82-
org.killbill.billing.plugin.braintree.runMigrations=true
83-
```
79+
The Braintree plugin requires a database. By default, schema migrations run automatically at plugin startup.
8480

8581
To skip automatic migrations (for example, if you prefer to manage the database schema manually), set:
8682

@@ -89,7 +85,7 @@ org.killbill.billing.plugin.braintree.runMigrations=false
8985
```
9086

9187

92-
When `org.killbill.billing.plugin.braintree.runMigrations` is disabled, ensure that the required database tables are created manually using the SQL scripts provided in the [https://github.com/killbill/killbill-braintree/tree/master/src/main/resources/migration](src/main/resources/migration) directory.
88+
When automatic migrations are disabled, ensure that the required database tables are created manually using the SQL scripts provided in the [src/main/resources/migration](https://github.com/killbill/killbill-braintree/tree/master/src/main/resources/migration) directory.
9389

9490
## Testing
9591

0 commit comments

Comments
 (0)