Skip to content

Commit

Permalink
Merge pull request #111 from smacker/recreate_initial_migration
Browse files Browse the repository at this point in the history
squash migrations
  • Loading branch information
smacker authored Aug 7, 2018
2 parents 8bee1ac + 38b0ad9 commit cf717e6
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 136 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DEPENDENCIES = \

# Backend services
POSTGRESQL_VERSION = 9.6
MIGRATIONS_PATH = store/migrations

# Including ci Makefile
CI_REPOSITORY ?= https://github.com/src-d/ci.git
Expand All @@ -33,12 +34,13 @@ BINDATA := go-bindata

.PHONY: bindata
bindata:
chmod -R go=r $(MIGRATIONS_PATH); \
$(BINDATA) \
-o store/bindata.go \
-pkg store \
-prefix 'store/migrations/' \
-modtime 1533216138 \
store/migrations/...
-prefix '$(MIGRATIONS_PATH)/' \
-modtime 1 \
$(MIGRATIONS_PATH)/...

# Protoc
PROTOC_DIR ?= ./protoc
Expand Down
134 changes: 21 additions & 113 deletions store/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions store/migrations/1533132482_add_number_to_review.down.sql

This file was deleted.

5 changes: 0 additions & 5 deletions store/migrations/1533132482_add_number_to_review.up.sql

This file was deleted.

5 changes: 0 additions & 5 deletions store/migrations/1533135217_add_repo_id_to_review.down.sql

This file was deleted.

5 changes: 0 additions & 5 deletions store/migrations/1533135217_add_repo_id_to_review.up.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ CREATE TABLE review_event (
source jsonb NOT NULL,
merge jsonb NOT NULL,
configuration jsonb NOT NULL,
repository_id bigint NOT NULL,
number bigint NOT NULL,
base jsonb NOT NULL,
head jsonb NOT NULL
);
Expand Down

0 comments on commit cf717e6

Please sign in to comment.