Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
migrations: use blob instead of postgres-specific bytea
Browse files Browse the repository at this point in the history
This CL uses the SQL compliant type BLOB instead of the
PostgreSQL-specific 'bytea', to describe binary blobs of data.

Fixes go-saloon/saloon#18.
  • Loading branch information
sbinet committed Mar 21, 2018
1 parent 199c108 commit be47e73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/00000000000001_create_users.up.fizz
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ create_table("users", func(t) {
t.Column("email", "string", {})
t.Column("password_hash", "string", {})
t.Column("full_name", "string", {})
t.Column("avatar", "bytea", {})
t.Column("avatar", "blob", {})
t.Column("admin", "bool", {})
t.Column("subscriptions", "varchar[]", {"null": true})
})
2 changes: 1 addition & 1 deletion migrations/00000000000005_create_forums.up.fizz
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ create_table("forums", func(t) {
t.Column("id", "uuid", {"primary": true})
t.Column("title", "string", {})
t.Column("description", "string", {})
t.Column("logo", "bytea", {})
t.Column("logo", "blob", {})
})

0 comments on commit be47e73

Please sign in to comment.