Skip to content

Instantly share code, notes, and snippets.

@viccherubini
Created June 18, 2014 18:27
Show Gist options
  • Save viccherubini/21bc1fae75c0dc54ee50 to your computer and use it in GitHub Desktop.
Save viccherubini/21bc1fae75c0dc54ee50 to your computer and use it in GitHub Desktop.
Phinx sample configuration
paths:
migrations: %%PHINX_CONFIG_DIR%%/../migrations
environments:
default_migration_table: _migrations
default_database: test
prod:
adapter: pgsql
host: "@@DB_SETTINGS_HOST@@"
name: "@@DB_SETTINGS_DATABASE@@"
user: "@@DB_SETTINGS_USERNAME@@"
pass: "@@DB_SETTINGS_PASSWORD@@"
charset: utf8
dev:
adapter: pgsql
host: "@@DB_SETTINGS_HOST@@"
name: "@@DB_SETTINGS_DATABASE@@"
user: "@@DB_SETTINGS_USERNAME@@"
pass: "@@DB_SETTINGS_PASSWORD@@"
charset: utf8
test:
adapter: pgsql
host: "@@DB_SETTINGS_TEST_HOST@@"
name: "@@DB_SETTINGS_TEST_DATABASE@@"
user: "@@DB_SETTINGS_TEST_USERNAME@@"
pass: "@@DB_SETTINGS_TEST_PASSWORD@@"
charset: utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment