Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ RUN mkdir /travis-migrations
WORKDIR /travis-migrations

# ruby deps
RUN apt-get update
RUN apt-get install -y wget build-essential bison zlib1g-dev libyaml-dev libssl1.0-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev openssl
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y --fix-missing wget build-essential bison zlib1g-dev libyaml-dev libssl1.0-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev openssl

# ruby-install
RUN wget -O ruby-install-0.6.1.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.1.tar.gz
Expand All @@ -19,5 +20,6 @@ RUN ruby-install --system --no-install-deps ruby `cat .ruby-version`
RUN which ruby

# gem setup
RUN apt-get install libpq-dev
RUN apt-get install --fix-missing libpq-dev
RUN gem install bundler
RUN gem update --system
9 changes: 9 additions & 0 deletions db/main/migrate/20190129000000_add_legacy_service_hook.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddLegacyServiceHook < ActiveRecord::Migration[5.2]
include Travis::PostgresVersion

def change
change_table :repositories do |t|
t.column :legacy_service_hook, :boolean
end
end
end
9 changes: 6 additions & 3 deletions db/main/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,8 @@ CREATE TABLE public.repositories (
migrated_at timestamp without time zone,
active_on_org boolean,
managed_by_installation_at timestamp without time zone,
migration_status character varying
migration_status character varying,
legacy_service_hook boolean
);


Expand Down Expand Up @@ -3266,7 +3267,7 @@ CREATE INDEX index_commits_on_tag_id ON public.commits USING btree (tag_id);
-- Name: index_crons_on_branch_id; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX index_crons_on_branch_id ON public.crons USING btree (branch_id);
CREATE UNIQUE INDEX index_crons_on_branch_id ON public.crons USING btree (branch_id);


--
Expand Down Expand Up @@ -4743,7 +4744,9 @@ INSERT INTO "schema_migrations" (version) VALUES
('20181203075818'),
('20181203075819'),
('20181203080356'),
('20181205152712'),
('20190102000000'),
('20190102000001');
('20190102000001'),
('20190129000000');


2 changes: 1 addition & 1 deletion script/dump-schema-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

docker kill travis-migrations || true
docker rm travis-migrations || true
docker run --name travis-migrations -v `pwd`:/travis-migrations -d travisci/travis-migrations:0.1
docker run --name travis-migrations -v `pwd`:/travis-migrations -d travisci/travis-migrations:0.3

sleep 5

Expand Down