Skip to content

Commit

Permalink
create develop sample like mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
MakoTano committed Aug 12, 2016
1 parent ac96cab commit 4bbf880
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/postgres/config.tml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[develop]
driver = "postgres"
dsn = "postgres:user=$POSTGRES_USER dbname=hogedb password=$POSTGRES_PASSWORD sslmode=disable"

[test1]
driver = "postgres"
dsn = "postgres:user=$POSTGRES_USER dbname=hogedb password=$POSTGRES_PASSWORD sslmode=disable"
Expand Down
1 change: 1 addition & 0 deletions examples/postgres/migrations/001_create_product_down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE product;
4 changes: 4 additions & 0 deletions examples/postgres/migrations/001_create_product_up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE TABLE product (
id int4 PRIMARY KEY,
name text
);

0 comments on commit 4bbf880

Please sign in to comment.