travis-backup 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.travis.yml +33 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +212 -0
- data/README.md +109 -0
- data/Rakefile +18 -0
- data/bin/bundle +114 -0
- data/bin/console +8 -0
- data/bin/rails +5 -0
- data/bin/rake +7 -0
- data/bin/setup +36 -0
- data/bin/spring +14 -0
- data/bin/travis_backup +7 -0
- data/bin/yarn +17 -0
- data/config/application.rb +22 -0
- data/config/boot.rb +4 -0
- data/config/cable.yml +10 -0
- data/config/credentials.yml.enc +1 -0
- data/config/database.yml +20 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +76 -0
- data/config/environments/production.rb +120 -0
- data/config/environments/test.rb +60 -0
- data/config/initializers/application_controller_renderer.rb +8 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/backtrace_silencers.rb +8 -0
- data/config/initializers/content_security_policy.rb +30 -0
- data/config/initializers/cookies_serializer.rb +5 -0
- data/config/initializers/filter_parameter_logging.rb +6 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/mime_types.rb +4 -0
- data/config/initializers/permissions_policy.rb +11 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/en.yml +33 -0
- data/config/puma.rb +43 -0
- data/config/routes.rb +3 -0
- data/config/settings.yml +7 -0
- data/config/spring.rb +6 -0
- data/config.ru +5 -0
- data/db/schema.sql +3502 -0
- data/dump/.keep +0 -0
- data/lib/config.rb +127 -0
- data/lib/models/build.rb +13 -0
- data/lib/models/job.rb +13 -0
- data/lib/models/model.rb +8 -0
- data/lib/models/organization.rb +7 -0
- data/lib/models/repository.rb +11 -0
- data/lib/models/user.rb +7 -0
- data/lib/travis-backup.rb +134 -0
- data/log/.keep +0 -0
- data/package.json +11 -0
- data/tmp/.keep +0 -0
- data/travis-backup.gemspec +29 -0
- data/vendor/.keep +0 -0
- metadata +286 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path.
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
# Add Yarn node_modules folder to the asset load path.
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
10
|
+
|
11
|
+
# Precompile additional assets.
|
12
|
+
# application.js, application.css, and all non-JS/CSS in the app/assets
|
13
|
+
# folder are already added.
|
14
|
+
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
7
|
+
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
8
|
+
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Define an application-wide content security policy
|
4
|
+
# For further information see the following documentation
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6
|
+
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
8
|
+
# policy.default_src :self, :https
|
9
|
+
# policy.font_src :self, :https, :data
|
10
|
+
# policy.img_src :self, :https, :data
|
11
|
+
# policy.object_src :none
|
12
|
+
# policy.script_src :self, :https
|
13
|
+
# policy.style_src :self, :https
|
14
|
+
# # If you are using webpack-dev-server then specify webpack-dev-server host
|
15
|
+
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
16
|
+
|
17
|
+
# # Specify URI for violation reports
|
18
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
19
|
+
# end
|
20
|
+
|
21
|
+
# If you are using UJS then enable automatic nonce generation
|
22
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
23
|
+
|
24
|
+
# Set the nonce only to specific directives
|
25
|
+
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
26
|
+
|
27
|
+
# Report CSP violations to a specified URI
|
28
|
+
# For further information see the following documentation:
|
29
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
30
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Define an application-wide HTTP permissions policy. For further
|
2
|
+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
3
|
+
#
|
4
|
+
# Rails.application.config.permissions_policy do |f|
|
5
|
+
# f.camera :none
|
6
|
+
# f.gyroscope :none
|
7
|
+
# f.microphone :none
|
8
|
+
# f.usb :none
|
9
|
+
# f.fullscreen :self
|
10
|
+
# f.payment :self, "https://secure.example.com"
|
11
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
data/config/puma.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
+
# terminating a worker in development environments.
|
13
|
+
#
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
+
|
16
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
17
|
+
#
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
19
|
+
|
20
|
+
# Specifies the `environment` that Puma will run in.
|
21
|
+
#
|
22
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
23
|
+
|
24
|
+
# Specifies the `pidfile` that Puma will use.
|
25
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
26
|
+
|
27
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
28
|
+
# Workers are forked web server processes. If using threads and workers together
|
29
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
30
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
31
|
+
# processes).
|
32
|
+
#
|
33
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
34
|
+
|
35
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
36
|
+
# This directive tells Puma to first boot the application and load code
|
37
|
+
# before forking the application. This takes advantage of Copy On Write
|
38
|
+
# process behavior so workers use less memory.
|
39
|
+
#
|
40
|
+
# preload_app!
|
41
|
+
|
42
|
+
# Allow puma to be restarted by `rails restart` command.
|
43
|
+
plugin :tmp_restart
|
data/config/routes.rb
ADDED
data/config/settings.yml
ADDED
data/config/spring.rb
ADDED
data/config.ru
ADDED
data/db/schema.sql
ADDED
@@ -0,0 +1,3502 @@
|
|
1
|
+
DROP SCHEMA IF EXISTS public CASCADE;
|
2
|
+
DROP SCHEMA IF EXISTS sqitch CASCADE;
|
3
|
+
CREATE SCHEMA public;
|
4
|
+
|
5
|
+
SET statement_timeout = 0;
|
6
|
+
SET lock_timeout = 0;
|
7
|
+
SET client_encoding = 'UTF8';
|
8
|
+
SET standard_conforming_strings = on;
|
9
|
+
SET check_function_bodies = false;
|
10
|
+
SET client_min_messages = warning;
|
11
|
+
|
12
|
+
SET statement_timeout = 0;
|
13
|
+
SET lock_timeout = 0;
|
14
|
+
SET client_encoding = 'UTF8';
|
15
|
+
SET standard_conforming_strings = on;
|
16
|
+
SET check_function_bodies = false;
|
17
|
+
SET client_min_messages = warning;
|
18
|
+
|
19
|
+
--
|
20
|
+
-- Name: sqitch; Type: SCHEMA; Schema: -; Owner: postgres
|
21
|
+
--
|
22
|
+
|
23
|
+
CREATE SCHEMA sqitch;
|
24
|
+
|
25
|
+
|
26
|
+
ALTER SCHEMA sqitch OWNER TO postgres;
|
27
|
+
|
28
|
+
--
|
29
|
+
-- Name: SCHEMA sqitch; Type: COMMENT; Schema: -; Owner: postgres
|
30
|
+
--
|
31
|
+
|
32
|
+
COMMENT ON SCHEMA sqitch IS 'Sqitch database deployment metadata v1.1.';
|
33
|
+
|
34
|
+
|
35
|
+
--
|
36
|
+
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
|
37
|
+
--
|
38
|
+
|
39
|
+
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
40
|
+
|
41
|
+
|
42
|
+
--
|
43
|
+
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
|
44
|
+
--
|
45
|
+
|
46
|
+
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
47
|
+
|
48
|
+
|
49
|
+
--
|
50
|
+
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner:
|
51
|
+
--
|
52
|
+
|
53
|
+
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
|
54
|
+
|
55
|
+
|
56
|
+
--
|
57
|
+
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner:
|
58
|
+
--
|
59
|
+
|
60
|
+
COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
|
61
|
+
|
62
|
+
|
63
|
+
--
|
64
|
+
-- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner:
|
65
|
+
--
|
66
|
+
|
67
|
+
CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
|
68
|
+
|
69
|
+
|
70
|
+
--
|
71
|
+
-- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner:
|
72
|
+
--
|
73
|
+
|
74
|
+
COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions';
|
75
|
+
|
76
|
+
|
77
|
+
SET search_path = public, pg_catalog;
|
78
|
+
|
79
|
+
--
|
80
|
+
-- Name: source_type; Type: TYPE; Schema: public; Owner: postgres
|
81
|
+
--
|
82
|
+
|
83
|
+
CREATE TYPE source_type AS ENUM (
|
84
|
+
'manual',
|
85
|
+
'stripe',
|
86
|
+
'github',
|
87
|
+
'unknown'
|
88
|
+
);
|
89
|
+
|
90
|
+
|
91
|
+
ALTER TYPE public.source_type OWNER TO postgres;
|
92
|
+
|
93
|
+
--
|
94
|
+
-- Name: set_updated_at(); Type: FUNCTION; Schema: public; Owner: postgres
|
95
|
+
--
|
96
|
+
|
97
|
+
CREATE FUNCTION set_updated_at() RETURNS trigger
|
98
|
+
LANGUAGE plpgsql
|
99
|
+
AS $$
|
100
|
+
BEGIN
|
101
|
+
IF TG_OP = 'INSERT' OR
|
102
|
+
(TG_OP = 'UPDATE' AND NEW.* IS DISTINCT FROM OLD.*) THEN
|
103
|
+
NEW.updated_at := statement_timestamp();
|
104
|
+
END IF;
|
105
|
+
RETURN NEW;
|
106
|
+
END;
|
107
|
+
$$;
|
108
|
+
|
109
|
+
|
110
|
+
ALTER FUNCTION public.set_updated_at() OWNER TO postgres;
|
111
|
+
|
112
|
+
SET default_tablespace = '';
|
113
|
+
|
114
|
+
SET default_with_oids = false;
|
115
|
+
|
116
|
+
--
|
117
|
+
-- Name: abuses; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
118
|
+
--
|
119
|
+
|
120
|
+
CREATE TABLE abuses (
|
121
|
+
id integer NOT NULL,
|
122
|
+
owner_id integer,
|
123
|
+
owner_type character varying,
|
124
|
+
request_id integer,
|
125
|
+
level integer NOT NULL,
|
126
|
+
reason character varying NOT NULL,
|
127
|
+
created_at timestamp without time zone NOT NULL,
|
128
|
+
updated_at timestamp without time zone NOT NULL
|
129
|
+
);
|
130
|
+
|
131
|
+
|
132
|
+
ALTER TABLE public.abuses OWNER TO postgres;
|
133
|
+
|
134
|
+
--
|
135
|
+
-- Name: abuses_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
136
|
+
--
|
137
|
+
|
138
|
+
CREATE SEQUENCE abuses_id_seq
|
139
|
+
START WITH 1
|
140
|
+
INCREMENT BY 1
|
141
|
+
NO MINVALUE
|
142
|
+
NO MAXVALUE
|
143
|
+
CACHE 1;
|
144
|
+
|
145
|
+
|
146
|
+
ALTER TABLE public.abuses_id_seq OWNER TO postgres;
|
147
|
+
|
148
|
+
--
|
149
|
+
-- Name: abuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
150
|
+
--
|
151
|
+
|
152
|
+
ALTER SEQUENCE abuses_id_seq OWNED BY abuses.id;
|
153
|
+
|
154
|
+
|
155
|
+
--
|
156
|
+
-- Name: annotation_providers; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
157
|
+
--
|
158
|
+
|
159
|
+
CREATE TABLE annotation_providers (
|
160
|
+
id integer NOT NULL,
|
161
|
+
name character varying,
|
162
|
+
api_username character varying,
|
163
|
+
api_key character varying,
|
164
|
+
created_at timestamp without time zone NOT NULL,
|
165
|
+
updated_at timestamp without time zone NOT NULL
|
166
|
+
);
|
167
|
+
|
168
|
+
|
169
|
+
ALTER TABLE public.annotation_providers OWNER TO postgres;
|
170
|
+
|
171
|
+
--
|
172
|
+
-- Name: annotation_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
173
|
+
--
|
174
|
+
|
175
|
+
CREATE SEQUENCE annotation_providers_id_seq
|
176
|
+
START WITH 1
|
177
|
+
INCREMENT BY 1
|
178
|
+
NO MINVALUE
|
179
|
+
NO MAXVALUE
|
180
|
+
CACHE 1;
|
181
|
+
|
182
|
+
|
183
|
+
ALTER TABLE public.annotation_providers_id_seq OWNER TO postgres;
|
184
|
+
|
185
|
+
--
|
186
|
+
-- Name: annotation_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
187
|
+
--
|
188
|
+
|
189
|
+
ALTER SEQUENCE annotation_providers_id_seq OWNED BY annotation_providers.id;
|
190
|
+
|
191
|
+
|
192
|
+
--
|
193
|
+
-- Name: annotations; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
194
|
+
--
|
195
|
+
|
196
|
+
CREATE TABLE annotations (
|
197
|
+
id integer NOT NULL,
|
198
|
+
job_id integer NOT NULL,
|
199
|
+
url character varying,
|
200
|
+
description text NOT NULL,
|
201
|
+
created_at timestamp without time zone NOT NULL,
|
202
|
+
updated_at timestamp without time zone NOT NULL,
|
203
|
+
annotation_provider_id integer NOT NULL,
|
204
|
+
status character varying
|
205
|
+
);
|
206
|
+
|
207
|
+
|
208
|
+
ALTER TABLE public.annotations OWNER TO postgres;
|
209
|
+
|
210
|
+
--
|
211
|
+
-- Name: annotations_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
212
|
+
--
|
213
|
+
|
214
|
+
CREATE SEQUENCE annotations_id_seq
|
215
|
+
START WITH 1
|
216
|
+
INCREMENT BY 1
|
217
|
+
NO MINVALUE
|
218
|
+
NO MAXVALUE
|
219
|
+
CACHE 1;
|
220
|
+
|
221
|
+
|
222
|
+
ALTER TABLE public.annotations_id_seq OWNER TO postgres;
|
223
|
+
|
224
|
+
--
|
225
|
+
-- Name: annotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
226
|
+
--
|
227
|
+
|
228
|
+
ALTER SEQUENCE annotations_id_seq OWNED BY annotations.id;
|
229
|
+
|
230
|
+
|
231
|
+
--
|
232
|
+
-- Name: beta_features; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
233
|
+
--
|
234
|
+
|
235
|
+
CREATE TABLE beta_features (
|
236
|
+
id integer NOT NULL,
|
237
|
+
name character varying,
|
238
|
+
description text,
|
239
|
+
feedback_url character varying,
|
240
|
+
staff_only boolean,
|
241
|
+
default_enabled boolean,
|
242
|
+
created_at timestamp without time zone,
|
243
|
+
updated_at timestamp without time zone
|
244
|
+
);
|
245
|
+
|
246
|
+
|
247
|
+
ALTER TABLE public.beta_features OWNER TO postgres;
|
248
|
+
|
249
|
+
--
|
250
|
+
-- Name: beta_features_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
251
|
+
--
|
252
|
+
|
253
|
+
CREATE SEQUENCE beta_features_id_seq
|
254
|
+
START WITH 1
|
255
|
+
INCREMENT BY 1
|
256
|
+
NO MINVALUE
|
257
|
+
NO MAXVALUE
|
258
|
+
CACHE 1;
|
259
|
+
|
260
|
+
|
261
|
+
ALTER TABLE public.beta_features_id_seq OWNER TO postgres;
|
262
|
+
|
263
|
+
--
|
264
|
+
-- Name: beta_features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
265
|
+
--
|
266
|
+
|
267
|
+
ALTER SEQUENCE beta_features_id_seq OWNED BY beta_features.id;
|
268
|
+
|
269
|
+
|
270
|
+
--
|
271
|
+
-- Name: branches; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
272
|
+
--
|
273
|
+
|
274
|
+
CREATE TABLE branches (
|
275
|
+
id integer NOT NULL,
|
276
|
+
repository_id integer NOT NULL,
|
277
|
+
last_build_id integer,
|
278
|
+
name character varying NOT NULL,
|
279
|
+
exists_on_github boolean DEFAULT true NOT NULL,
|
280
|
+
created_at timestamp without time zone NOT NULL,
|
281
|
+
updated_at timestamp without time zone NOT NULL
|
282
|
+
);
|
283
|
+
|
284
|
+
|
285
|
+
ALTER TABLE public.branches OWNER TO postgres;
|
286
|
+
|
287
|
+
--
|
288
|
+
-- Name: branches_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
289
|
+
--
|
290
|
+
|
291
|
+
CREATE SEQUENCE branches_id_seq
|
292
|
+
START WITH 1
|
293
|
+
INCREMENT BY 1
|
294
|
+
NO MINVALUE
|
295
|
+
NO MAXVALUE
|
296
|
+
CACHE 1;
|
297
|
+
|
298
|
+
|
299
|
+
ALTER TABLE public.branches_id_seq OWNER TO postgres;
|
300
|
+
|
301
|
+
--
|
302
|
+
-- Name: branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
303
|
+
--
|
304
|
+
|
305
|
+
ALTER SEQUENCE branches_id_seq OWNED BY branches.id;
|
306
|
+
|
307
|
+
|
308
|
+
--
|
309
|
+
-- Name: broadcasts; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
310
|
+
--
|
311
|
+
|
312
|
+
CREATE TABLE broadcasts (
|
313
|
+
id integer NOT NULL,
|
314
|
+
recipient_id integer,
|
315
|
+
recipient_type character varying,
|
316
|
+
kind character varying,
|
317
|
+
message character varying,
|
318
|
+
expired boolean,
|
319
|
+
created_at timestamp without time zone NOT NULL,
|
320
|
+
updated_at timestamp without time zone NOT NULL,
|
321
|
+
category character varying
|
322
|
+
);
|
323
|
+
|
324
|
+
|
325
|
+
ALTER TABLE public.broadcasts OWNER TO postgres;
|
326
|
+
|
327
|
+
--
|
328
|
+
-- Name: broadcasts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
329
|
+
--
|
330
|
+
|
331
|
+
CREATE SEQUENCE broadcasts_id_seq
|
332
|
+
START WITH 1
|
333
|
+
INCREMENT BY 1
|
334
|
+
NO MINVALUE
|
335
|
+
NO MAXVALUE
|
336
|
+
CACHE 1;
|
337
|
+
|
338
|
+
|
339
|
+
ALTER TABLE public.broadcasts_id_seq OWNER TO postgres;
|
340
|
+
|
341
|
+
--
|
342
|
+
-- Name: broadcasts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
343
|
+
--
|
344
|
+
|
345
|
+
ALTER SEQUENCE broadcasts_id_seq OWNED BY broadcasts.id;
|
346
|
+
|
347
|
+
|
348
|
+
--
|
349
|
+
-- Name: shared_builds_tasks_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
350
|
+
--
|
351
|
+
|
352
|
+
CREATE SEQUENCE shared_builds_tasks_seq
|
353
|
+
START WITH 1
|
354
|
+
INCREMENT BY 1
|
355
|
+
NO MINVALUE
|
356
|
+
NO MAXVALUE
|
357
|
+
CACHE 1;
|
358
|
+
|
359
|
+
|
360
|
+
ALTER TABLE public.shared_builds_tasks_seq OWNER TO postgres;
|
361
|
+
|
362
|
+
--
|
363
|
+
-- Name: builds; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
364
|
+
--
|
365
|
+
|
366
|
+
CREATE TABLE builds (
|
367
|
+
id bigint DEFAULT nextval('shared_builds_tasks_seq'::regclass) NOT NULL,
|
368
|
+
repository_id integer,
|
369
|
+
number character varying,
|
370
|
+
started_at timestamp without time zone,
|
371
|
+
finished_at timestamp without time zone,
|
372
|
+
created_at timestamp without time zone NOT NULL,
|
373
|
+
updated_at timestamp without time zone NOT NULL,
|
374
|
+
config text,
|
375
|
+
commit_id integer,
|
376
|
+
request_id integer,
|
377
|
+
state character varying,
|
378
|
+
duration integer,
|
379
|
+
owner_id integer,
|
380
|
+
owner_type character varying,
|
381
|
+
event_type character varying,
|
382
|
+
previous_state character varying,
|
383
|
+
pull_request_title text,
|
384
|
+
pull_request_number integer,
|
385
|
+
branch character varying,
|
386
|
+
canceled_at timestamp without time zone,
|
387
|
+
cached_matrix_ids integer[],
|
388
|
+
received_at timestamp without time zone,
|
389
|
+
private boolean,
|
390
|
+
pull_request_id integer,
|
391
|
+
branch_id integer,
|
392
|
+
tag_id integer,
|
393
|
+
sender_id integer,
|
394
|
+
sender_type character varying
|
395
|
+
);
|
396
|
+
|
397
|
+
|
398
|
+
ALTER TABLE public.builds OWNER TO postgres;
|
399
|
+
|
400
|
+
--
|
401
|
+
-- Name: builds_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
402
|
+
--
|
403
|
+
|
404
|
+
CREATE SEQUENCE builds_id_seq
|
405
|
+
START WITH 1
|
406
|
+
INCREMENT BY 1
|
407
|
+
NO MINVALUE
|
408
|
+
NO MAXVALUE
|
409
|
+
CACHE 1;
|
410
|
+
|
411
|
+
|
412
|
+
ALTER TABLE public.builds_id_seq OWNER TO postgres;
|
413
|
+
|
414
|
+
--
|
415
|
+
-- Name: builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
416
|
+
--
|
417
|
+
|
418
|
+
ALTER SEQUENCE builds_id_seq OWNED BY builds.id;
|
419
|
+
|
420
|
+
|
421
|
+
--
|
422
|
+
-- Name: commits; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
423
|
+
--
|
424
|
+
|
425
|
+
CREATE TABLE commits (
|
426
|
+
id integer NOT NULL,
|
427
|
+
repository_id integer,
|
428
|
+
commit character varying,
|
429
|
+
ref character varying,
|
430
|
+
branch character varying,
|
431
|
+
message text,
|
432
|
+
compare_url character varying,
|
433
|
+
committed_at timestamp without time zone,
|
434
|
+
committer_name character varying,
|
435
|
+
committer_email character varying,
|
436
|
+
author_name character varying,
|
437
|
+
author_email character varying,
|
438
|
+
created_at timestamp without time zone NOT NULL,
|
439
|
+
updated_at timestamp without time zone NOT NULL,
|
440
|
+
branch_id integer,
|
441
|
+
tag_id integer
|
442
|
+
);
|
443
|
+
|
444
|
+
|
445
|
+
ALTER TABLE public.commits OWNER TO postgres;
|
446
|
+
|
447
|
+
--
|
448
|
+
-- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
449
|
+
--
|
450
|
+
|
451
|
+
CREATE SEQUENCE commits_id_seq
|
452
|
+
START WITH 1
|
453
|
+
INCREMENT BY 1
|
454
|
+
NO MINVALUE
|
455
|
+
NO MAXVALUE
|
456
|
+
CACHE 1;
|
457
|
+
|
458
|
+
|
459
|
+
ALTER TABLE public.commits_id_seq OWNER TO postgres;
|
460
|
+
|
461
|
+
--
|
462
|
+
-- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
463
|
+
--
|
464
|
+
|
465
|
+
ALTER SEQUENCE commits_id_seq OWNED BY commits.id;
|
466
|
+
|
467
|
+
|
468
|
+
--
|
469
|
+
-- Name: coupons; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
470
|
+
--
|
471
|
+
|
472
|
+
CREATE TABLE coupons (
|
473
|
+
id integer NOT NULL,
|
474
|
+
percent_off integer,
|
475
|
+
coupon_id character varying,
|
476
|
+
redeem_by timestamp without time zone,
|
477
|
+
amount_off integer,
|
478
|
+
duration character varying,
|
479
|
+
duration_in_months integer,
|
480
|
+
max_redemptions integer,
|
481
|
+
redemptions integer
|
482
|
+
);
|
483
|
+
|
484
|
+
|
485
|
+
ALTER TABLE public.coupons OWNER TO postgres;
|
486
|
+
|
487
|
+
--
|
488
|
+
-- Name: coupons_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
489
|
+
--
|
490
|
+
|
491
|
+
CREATE SEQUENCE coupons_id_seq
|
492
|
+
START WITH 1
|
493
|
+
INCREMENT BY 1
|
494
|
+
NO MINVALUE
|
495
|
+
NO MAXVALUE
|
496
|
+
CACHE 1;
|
497
|
+
|
498
|
+
|
499
|
+
ALTER TABLE public.coupons_id_seq OWNER TO postgres;
|
500
|
+
|
501
|
+
--
|
502
|
+
-- Name: coupons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
503
|
+
--
|
504
|
+
|
505
|
+
ALTER SEQUENCE coupons_id_seq OWNED BY coupons.id;
|
506
|
+
|
507
|
+
|
508
|
+
--
|
509
|
+
-- Name: crons; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
510
|
+
--
|
511
|
+
|
512
|
+
CREATE TABLE crons (
|
513
|
+
id integer NOT NULL,
|
514
|
+
branch_id integer,
|
515
|
+
"interval" character varying NOT NULL,
|
516
|
+
created_at timestamp without time zone NOT NULL,
|
517
|
+
updated_at timestamp without time zone NOT NULL,
|
518
|
+
next_run timestamp without time zone,
|
519
|
+
last_run timestamp without time zone,
|
520
|
+
dont_run_if_recent_build_exists boolean DEFAULT false
|
521
|
+
);
|
522
|
+
|
523
|
+
|
524
|
+
ALTER TABLE public.crons OWNER TO postgres;
|
525
|
+
|
526
|
+
--
|
527
|
+
-- Name: crons_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
528
|
+
--
|
529
|
+
|
530
|
+
CREATE SEQUENCE crons_id_seq
|
531
|
+
START WITH 1
|
532
|
+
INCREMENT BY 1
|
533
|
+
NO MINVALUE
|
534
|
+
NO MAXVALUE
|
535
|
+
CACHE 1;
|
536
|
+
|
537
|
+
|
538
|
+
ALTER TABLE public.crons_id_seq OWNER TO postgres;
|
539
|
+
|
540
|
+
--
|
541
|
+
-- Name: crons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
542
|
+
--
|
543
|
+
|
544
|
+
ALTER SEQUENCE crons_id_seq OWNED BY crons.id;
|
545
|
+
|
546
|
+
|
547
|
+
--
|
548
|
+
-- Name: emails; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
549
|
+
--
|
550
|
+
|
551
|
+
CREATE TABLE emails (
|
552
|
+
id integer NOT NULL,
|
553
|
+
user_id integer,
|
554
|
+
email character varying,
|
555
|
+
created_at timestamp without time zone NOT NULL,
|
556
|
+
updated_at timestamp without time zone NOT NULL
|
557
|
+
);
|
558
|
+
|
559
|
+
|
560
|
+
ALTER TABLE public.emails OWNER TO postgres;
|
561
|
+
|
562
|
+
--
|
563
|
+
-- Name: emails_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
564
|
+
--
|
565
|
+
|
566
|
+
CREATE SEQUENCE emails_id_seq
|
567
|
+
START WITH 1
|
568
|
+
INCREMENT BY 1
|
569
|
+
NO MINVALUE
|
570
|
+
NO MAXVALUE
|
571
|
+
CACHE 1;
|
572
|
+
|
573
|
+
|
574
|
+
ALTER TABLE public.emails_id_seq OWNER TO postgres;
|
575
|
+
|
576
|
+
--
|
577
|
+
-- Name: emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
578
|
+
--
|
579
|
+
|
580
|
+
ALTER SEQUENCE emails_id_seq OWNED BY emails.id;
|
581
|
+
|
582
|
+
|
583
|
+
--
|
584
|
+
-- Name: invoices; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
585
|
+
--
|
586
|
+
|
587
|
+
CREATE TABLE invoices (
|
588
|
+
id integer NOT NULL,
|
589
|
+
object text,
|
590
|
+
created_at timestamp without time zone,
|
591
|
+
updated_at timestamp without time zone,
|
592
|
+
subscription_id integer,
|
593
|
+
invoice_id character varying,
|
594
|
+
stripe_id character varying,
|
595
|
+
cc_last_digits character varying
|
596
|
+
);
|
597
|
+
|
598
|
+
|
599
|
+
ALTER TABLE public.invoices OWNER TO postgres;
|
600
|
+
|
601
|
+
--
|
602
|
+
-- Name: invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
603
|
+
--
|
604
|
+
|
605
|
+
CREATE SEQUENCE invoices_id_seq
|
606
|
+
START WITH 1
|
607
|
+
INCREMENT BY 1
|
608
|
+
NO MINVALUE
|
609
|
+
NO MAXVALUE
|
610
|
+
CACHE 1;
|
611
|
+
|
612
|
+
|
613
|
+
ALTER TABLE public.invoices_id_seq OWNER TO postgres;
|
614
|
+
|
615
|
+
--
|
616
|
+
-- Name: invoices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
617
|
+
--
|
618
|
+
|
619
|
+
ALTER SEQUENCE invoices_id_seq OWNED BY invoices.id;
|
620
|
+
|
621
|
+
|
622
|
+
--
|
623
|
+
-- Name: jobs; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
624
|
+
--
|
625
|
+
|
626
|
+
CREATE TABLE jobs (
|
627
|
+
id bigint DEFAULT nextval('shared_builds_tasks_seq'::regclass) NOT NULL,
|
628
|
+
repository_id integer,
|
629
|
+
commit_id integer,
|
630
|
+
source_id integer,
|
631
|
+
source_type character varying,
|
632
|
+
queue character varying,
|
633
|
+
type character varying,
|
634
|
+
state character varying,
|
635
|
+
number character varying,
|
636
|
+
config text,
|
637
|
+
worker character varying,
|
638
|
+
started_at timestamp without time zone,
|
639
|
+
finished_at timestamp without time zone,
|
640
|
+
created_at timestamp without time zone NOT NULL,
|
641
|
+
updated_at timestamp without time zone NOT NULL,
|
642
|
+
tags text,
|
643
|
+
allow_failure boolean DEFAULT false,
|
644
|
+
owner_id integer,
|
645
|
+
owner_type character varying,
|
646
|
+
result integer,
|
647
|
+
queued_at timestamp without time zone,
|
648
|
+
canceled_at timestamp without time zone,
|
649
|
+
received_at timestamp without time zone,
|
650
|
+
debug_options text,
|
651
|
+
private boolean,
|
652
|
+
stage_number character varying,
|
653
|
+
stage_id integer
|
654
|
+
);
|
655
|
+
|
656
|
+
|
657
|
+
ALTER TABLE public.jobs OWNER TO postgres;
|
658
|
+
|
659
|
+
--
|
660
|
+
-- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
661
|
+
--
|
662
|
+
|
663
|
+
CREATE SEQUENCE jobs_id_seq
|
664
|
+
START WITH 1
|
665
|
+
INCREMENT BY 1
|
666
|
+
NO MINVALUE
|
667
|
+
NO MAXVALUE
|
668
|
+
CACHE 1;
|
669
|
+
|
670
|
+
|
671
|
+
ALTER TABLE public.jobs_id_seq OWNER TO postgres;
|
672
|
+
|
673
|
+
--
|
674
|
+
-- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
675
|
+
--
|
676
|
+
|
677
|
+
ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
|
678
|
+
|
679
|
+
|
680
|
+
--
|
681
|
+
-- Name: log_parts; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
682
|
+
--
|
683
|
+
|
684
|
+
CREATE TABLE log_parts (
|
685
|
+
id bigint NOT NULL,
|
686
|
+
log_id integer NOT NULL,
|
687
|
+
content text,
|
688
|
+
number integer,
|
689
|
+
final boolean,
|
690
|
+
created_at timestamp without time zone DEFAULT '2000-01-01 00:00:00'::timestamp without time zone NOT NULL
|
691
|
+
)
|
692
|
+
WITH (autovacuum_vacuum_threshold='0', autovacuum_vacuum_scale_factor='0.001');
|
693
|
+
|
694
|
+
|
695
|
+
ALTER TABLE public.log_parts OWNER TO postgres;
|
696
|
+
|
697
|
+
--
|
698
|
+
-- Name: log_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
699
|
+
--
|
700
|
+
|
701
|
+
CREATE SEQUENCE log_parts_id_seq
|
702
|
+
START WITH 1
|
703
|
+
INCREMENT BY 1
|
704
|
+
NO MINVALUE
|
705
|
+
NO MAXVALUE
|
706
|
+
CACHE 1;
|
707
|
+
|
708
|
+
|
709
|
+
ALTER TABLE public.log_parts_id_seq OWNER TO postgres;
|
710
|
+
|
711
|
+
--
|
712
|
+
-- Name: log_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
713
|
+
--
|
714
|
+
|
715
|
+
ALTER SEQUENCE log_parts_id_seq OWNED BY log_parts.id;
|
716
|
+
|
717
|
+
|
718
|
+
--
|
719
|
+
-- Name: logs; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
720
|
+
--
|
721
|
+
|
722
|
+
CREATE TABLE logs (
|
723
|
+
id integer NOT NULL,
|
724
|
+
job_id integer,
|
725
|
+
content text,
|
726
|
+
removed_by integer,
|
727
|
+
created_at timestamp without time zone,
|
728
|
+
updated_at timestamp without time zone,
|
729
|
+
aggregated_at timestamp without time zone,
|
730
|
+
archived_at timestamp without time zone,
|
731
|
+
purged_at timestamp without time zone,
|
732
|
+
removed_at timestamp without time zone,
|
733
|
+
archiving boolean,
|
734
|
+
archive_verified boolean
|
735
|
+
);
|
736
|
+
|
737
|
+
|
738
|
+
ALTER TABLE public.logs OWNER TO postgres;
|
739
|
+
|
740
|
+
--
|
741
|
+
-- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
742
|
+
--
|
743
|
+
|
744
|
+
CREATE SEQUENCE logs_id_seq
|
745
|
+
START WITH 1
|
746
|
+
INCREMENT BY 1
|
747
|
+
NO MINVALUE
|
748
|
+
NO MAXVALUE
|
749
|
+
CACHE 1;
|
750
|
+
|
751
|
+
|
752
|
+
ALTER TABLE public.logs_id_seq OWNER TO postgres;
|
753
|
+
|
754
|
+
--
|
755
|
+
-- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
756
|
+
--
|
757
|
+
|
758
|
+
ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
|
759
|
+
|
760
|
+
|
761
|
+
--
|
762
|
+
-- Name: memberships; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
763
|
+
--
|
764
|
+
|
765
|
+
CREATE TABLE memberships (
|
766
|
+
id integer NOT NULL,
|
767
|
+
organization_id integer,
|
768
|
+
user_id integer,
|
769
|
+
role character varying
|
770
|
+
);
|
771
|
+
|
772
|
+
|
773
|
+
ALTER TABLE public.memberships OWNER TO postgres;
|
774
|
+
|
775
|
+
--
|
776
|
+
-- Name: memberships_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
777
|
+
--
|
778
|
+
|
779
|
+
CREATE SEQUENCE memberships_id_seq
|
780
|
+
START WITH 1
|
781
|
+
INCREMENT BY 1
|
782
|
+
NO MINVALUE
|
783
|
+
NO MAXVALUE
|
784
|
+
CACHE 1;
|
785
|
+
|
786
|
+
|
787
|
+
ALTER TABLE public.memberships_id_seq OWNER TO postgres;
|
788
|
+
|
789
|
+
--
|
790
|
+
-- Name: memberships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
791
|
+
--
|
792
|
+
|
793
|
+
ALTER SEQUENCE memberships_id_seq OWNED BY memberships.id;
|
794
|
+
|
795
|
+
|
796
|
+
--
|
797
|
+
-- Name: messages; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
798
|
+
--
|
799
|
+
|
800
|
+
CREATE TABLE messages (
|
801
|
+
id integer NOT NULL,
|
802
|
+
subject_id integer,
|
803
|
+
subject_type character varying,
|
804
|
+
level character varying,
|
805
|
+
key character varying,
|
806
|
+
code character varying,
|
807
|
+
args json,
|
808
|
+
created_at timestamp without time zone NOT NULL,
|
809
|
+
updated_at timestamp without time zone NOT NULL
|
810
|
+
);
|
811
|
+
|
812
|
+
|
813
|
+
ALTER TABLE public.messages OWNER TO postgres;
|
814
|
+
|
815
|
+
--
|
816
|
+
-- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
817
|
+
--
|
818
|
+
|
819
|
+
CREATE SEQUENCE messages_id_seq
|
820
|
+
START WITH 1
|
821
|
+
INCREMENT BY 1
|
822
|
+
NO MINVALUE
|
823
|
+
NO MAXVALUE
|
824
|
+
CACHE 1;
|
825
|
+
|
826
|
+
|
827
|
+
ALTER TABLE public.messages_id_seq OWNER TO postgres;
|
828
|
+
|
829
|
+
--
|
830
|
+
-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
831
|
+
--
|
832
|
+
|
833
|
+
ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
|
834
|
+
|
835
|
+
|
836
|
+
--
|
837
|
+
-- Name: organizations; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
838
|
+
--
|
839
|
+
|
840
|
+
CREATE TABLE organizations (
|
841
|
+
id integer NOT NULL,
|
842
|
+
name character varying,
|
843
|
+
login character varying,
|
844
|
+
github_id integer,
|
845
|
+
created_at timestamp without time zone NOT NULL,
|
846
|
+
updated_at timestamp without time zone NOT NULL,
|
847
|
+
avatar_url character varying,
|
848
|
+
location character varying,
|
849
|
+
email character varying,
|
850
|
+
company character varying,
|
851
|
+
homepage character varying,
|
852
|
+
billing_admin_only boolean
|
853
|
+
);
|
854
|
+
|
855
|
+
|
856
|
+
ALTER TABLE public.organizations OWNER TO postgres;
|
857
|
+
|
858
|
+
--
|
859
|
+
-- Name: organizations_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
860
|
+
--
|
861
|
+
|
862
|
+
CREATE SEQUENCE organizations_id_seq
|
863
|
+
START WITH 1
|
864
|
+
INCREMENT BY 1
|
865
|
+
NO MINVALUE
|
866
|
+
NO MAXVALUE
|
867
|
+
CACHE 1;
|
868
|
+
|
869
|
+
|
870
|
+
ALTER TABLE public.organizations_id_seq OWNER TO postgres;
|
871
|
+
|
872
|
+
--
|
873
|
+
-- Name: organizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
874
|
+
--
|
875
|
+
|
876
|
+
ALTER SEQUENCE organizations_id_seq OWNED BY organizations.id;
|
877
|
+
|
878
|
+
|
879
|
+
--
|
880
|
+
-- Name: owner_groups; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
881
|
+
--
|
882
|
+
|
883
|
+
CREATE TABLE owner_groups (
|
884
|
+
id integer NOT NULL,
|
885
|
+
uuid character varying,
|
886
|
+
owner_id integer,
|
887
|
+
owner_type character varying,
|
888
|
+
created_at timestamp without time zone,
|
889
|
+
updated_at timestamp without time zone
|
890
|
+
);
|
891
|
+
|
892
|
+
|
893
|
+
ALTER TABLE public.owner_groups OWNER TO postgres;
|
894
|
+
|
895
|
+
--
|
896
|
+
-- Name: owner_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
897
|
+
--
|
898
|
+
|
899
|
+
CREATE SEQUENCE owner_groups_id_seq
|
900
|
+
START WITH 1
|
901
|
+
INCREMENT BY 1
|
902
|
+
NO MINVALUE
|
903
|
+
NO MAXVALUE
|
904
|
+
CACHE 1;
|
905
|
+
|
906
|
+
|
907
|
+
ALTER TABLE public.owner_groups_id_seq OWNER TO postgres;
|
908
|
+
|
909
|
+
--
|
910
|
+
-- Name: owner_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
911
|
+
--
|
912
|
+
|
913
|
+
ALTER SEQUENCE owner_groups_id_seq OWNED BY owner_groups.id;
|
914
|
+
|
915
|
+
|
916
|
+
--
|
917
|
+
-- Name: permissions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
918
|
+
--
|
919
|
+
|
920
|
+
CREATE TABLE permissions (
|
921
|
+
id integer NOT NULL,
|
922
|
+
user_id integer,
|
923
|
+
repository_id integer,
|
924
|
+
admin boolean DEFAULT false,
|
925
|
+
push boolean DEFAULT false,
|
926
|
+
pull boolean DEFAULT false
|
927
|
+
);
|
928
|
+
|
929
|
+
|
930
|
+
ALTER TABLE public.permissions OWNER TO postgres;
|
931
|
+
|
932
|
+
--
|
933
|
+
-- Name: permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
934
|
+
--
|
935
|
+
|
936
|
+
CREATE SEQUENCE permissions_id_seq
|
937
|
+
START WITH 1
|
938
|
+
INCREMENT BY 1
|
939
|
+
NO MINVALUE
|
940
|
+
NO MAXVALUE
|
941
|
+
CACHE 1;
|
942
|
+
|
943
|
+
|
944
|
+
ALTER TABLE public.permissions_id_seq OWNER TO postgres;
|
945
|
+
|
946
|
+
--
|
947
|
+
-- Name: permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
948
|
+
--
|
949
|
+
|
950
|
+
ALTER SEQUENCE permissions_id_seq OWNED BY permissions.id;
|
951
|
+
|
952
|
+
|
953
|
+
--
|
954
|
+
-- Name: pull_requests; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
955
|
+
--
|
956
|
+
|
957
|
+
CREATE TABLE pull_requests (
|
958
|
+
id integer NOT NULL,
|
959
|
+
repository_id integer,
|
960
|
+
number integer,
|
961
|
+
title character varying,
|
962
|
+
state character varying,
|
963
|
+
head_repo_github_id integer,
|
964
|
+
head_repo_slug character varying,
|
965
|
+
head_ref character varying,
|
966
|
+
created_at timestamp without time zone,
|
967
|
+
updated_at timestamp without time zone
|
968
|
+
);
|
969
|
+
|
970
|
+
|
971
|
+
ALTER TABLE public.pull_requests OWNER TO postgres;
|
972
|
+
|
973
|
+
--
|
974
|
+
-- Name: pull_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
975
|
+
--
|
976
|
+
|
977
|
+
CREATE SEQUENCE pull_requests_id_seq
|
978
|
+
START WITH 1
|
979
|
+
INCREMENT BY 1
|
980
|
+
NO MINVALUE
|
981
|
+
NO MAXVALUE
|
982
|
+
CACHE 1;
|
983
|
+
|
984
|
+
|
985
|
+
ALTER TABLE public.pull_requests_id_seq OWNER TO postgres;
|
986
|
+
|
987
|
+
--
|
988
|
+
-- Name: pull_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
989
|
+
--
|
990
|
+
|
991
|
+
ALTER SEQUENCE pull_requests_id_seq OWNED BY pull_requests.id;
|
992
|
+
|
993
|
+
|
994
|
+
--
|
995
|
+
-- Name: queueable_jobs; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
996
|
+
--
|
997
|
+
|
998
|
+
CREATE TABLE queueable_jobs (
|
999
|
+
id integer NOT NULL,
|
1000
|
+
job_id integer
|
1001
|
+
);
|
1002
|
+
|
1003
|
+
|
1004
|
+
ALTER TABLE public.queueable_jobs OWNER TO postgres;
|
1005
|
+
|
1006
|
+
--
|
1007
|
+
-- Name: queueable_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1008
|
+
--
|
1009
|
+
|
1010
|
+
CREATE SEQUENCE queueable_jobs_id_seq
|
1011
|
+
START WITH 1
|
1012
|
+
INCREMENT BY 1
|
1013
|
+
NO MINVALUE
|
1014
|
+
NO MAXVALUE
|
1015
|
+
CACHE 1;
|
1016
|
+
|
1017
|
+
|
1018
|
+
ALTER TABLE public.queueable_jobs_id_seq OWNER TO postgres;
|
1019
|
+
|
1020
|
+
--
|
1021
|
+
-- Name: queueable_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1022
|
+
--
|
1023
|
+
|
1024
|
+
ALTER SEQUENCE queueable_jobs_id_seq OWNED BY queueable_jobs.id;
|
1025
|
+
|
1026
|
+
|
1027
|
+
--
|
1028
|
+
-- Name: repositories; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1029
|
+
--
|
1030
|
+
|
1031
|
+
CREATE TABLE repositories (
|
1032
|
+
id integer NOT NULL,
|
1033
|
+
name character varying,
|
1034
|
+
url character varying,
|
1035
|
+
created_at timestamp without time zone NOT NULL,
|
1036
|
+
updated_at timestamp without time zone NOT NULL,
|
1037
|
+
last_build_id integer,
|
1038
|
+
last_build_number character varying,
|
1039
|
+
last_build_started_at timestamp without time zone,
|
1040
|
+
last_build_finished_at timestamp without time zone,
|
1041
|
+
owner_name character varying,
|
1042
|
+
owner_email text,
|
1043
|
+
active boolean,
|
1044
|
+
description text,
|
1045
|
+
last_build_duration integer,
|
1046
|
+
owner_id integer,
|
1047
|
+
owner_type character varying,
|
1048
|
+
private boolean DEFAULT false,
|
1049
|
+
last_build_state character varying,
|
1050
|
+
github_id integer,
|
1051
|
+
default_branch character varying,
|
1052
|
+
github_language character varying,
|
1053
|
+
settings json,
|
1054
|
+
next_build_number integer,
|
1055
|
+
invalidated_at timestamp without time zone,
|
1056
|
+
current_build_id bigint
|
1057
|
+
);
|
1058
|
+
|
1059
|
+
|
1060
|
+
ALTER TABLE public.repositories OWNER TO postgres;
|
1061
|
+
|
1062
|
+
--
|
1063
|
+
-- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1064
|
+
--
|
1065
|
+
|
1066
|
+
CREATE SEQUENCE repositories_id_seq
|
1067
|
+
START WITH 1
|
1068
|
+
INCREMENT BY 1
|
1069
|
+
NO MINVALUE
|
1070
|
+
NO MAXVALUE
|
1071
|
+
CACHE 1;
|
1072
|
+
|
1073
|
+
|
1074
|
+
ALTER TABLE public.repositories_id_seq OWNER TO postgres;
|
1075
|
+
|
1076
|
+
--
|
1077
|
+
-- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1078
|
+
--
|
1079
|
+
|
1080
|
+
ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
|
1081
|
+
|
1082
|
+
|
1083
|
+
--
|
1084
|
+
-- Name: requests; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1085
|
+
--
|
1086
|
+
|
1087
|
+
CREATE TABLE requests (
|
1088
|
+
id integer NOT NULL,
|
1089
|
+
repository_id integer,
|
1090
|
+
commit_id integer,
|
1091
|
+
state character varying,
|
1092
|
+
source character varying,
|
1093
|
+
payload text,
|
1094
|
+
token character varying,
|
1095
|
+
config text,
|
1096
|
+
started_at timestamp without time zone,
|
1097
|
+
finished_at timestamp without time zone,
|
1098
|
+
created_at timestamp without time zone NOT NULL,
|
1099
|
+
updated_at timestamp without time zone NOT NULL,
|
1100
|
+
event_type character varying,
|
1101
|
+
comments_url character varying,
|
1102
|
+
base_commit character varying,
|
1103
|
+
head_commit character varying,
|
1104
|
+
owner_id integer,
|
1105
|
+
owner_type character varying,
|
1106
|
+
result character varying,
|
1107
|
+
message character varying,
|
1108
|
+
private boolean,
|
1109
|
+
pull_request_id integer,
|
1110
|
+
branch_id integer,
|
1111
|
+
tag_id integer,
|
1112
|
+
sender_id integer,
|
1113
|
+
sender_type character varying
|
1114
|
+
);
|
1115
|
+
|
1116
|
+
|
1117
|
+
ALTER TABLE public.requests OWNER TO postgres;
|
1118
|
+
|
1119
|
+
--
|
1120
|
+
-- Name: requests_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1121
|
+
--
|
1122
|
+
|
1123
|
+
CREATE SEQUENCE requests_id_seq
|
1124
|
+
START WITH 1
|
1125
|
+
INCREMENT BY 1
|
1126
|
+
NO MINVALUE
|
1127
|
+
NO MAXVALUE
|
1128
|
+
CACHE 1;
|
1129
|
+
|
1130
|
+
|
1131
|
+
ALTER TABLE public.requests_id_seq OWNER TO postgres;
|
1132
|
+
|
1133
|
+
--
|
1134
|
+
-- Name: requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1135
|
+
--
|
1136
|
+
|
1137
|
+
ALTER SEQUENCE requests_id_seq OWNED BY requests.id;
|
1138
|
+
|
1139
|
+
|
1140
|
+
--
|
1141
|
+
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1142
|
+
--
|
1143
|
+
|
1144
|
+
CREATE TABLE schema_migrations (
|
1145
|
+
version character varying NOT NULL
|
1146
|
+
);
|
1147
|
+
|
1148
|
+
|
1149
|
+
ALTER TABLE public.schema_migrations OWNER TO postgres;
|
1150
|
+
|
1151
|
+
--
|
1152
|
+
-- Name: ssl_keys; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1153
|
+
--
|
1154
|
+
|
1155
|
+
CREATE TABLE ssl_keys (
|
1156
|
+
id integer NOT NULL,
|
1157
|
+
repository_id integer,
|
1158
|
+
public_key text,
|
1159
|
+
private_key text,
|
1160
|
+
created_at timestamp without time zone NOT NULL,
|
1161
|
+
updated_at timestamp without time zone NOT NULL
|
1162
|
+
);
|
1163
|
+
|
1164
|
+
|
1165
|
+
ALTER TABLE public.ssl_keys OWNER TO postgres;
|
1166
|
+
|
1167
|
+
--
|
1168
|
+
-- Name: ssl_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1169
|
+
--
|
1170
|
+
|
1171
|
+
CREATE SEQUENCE ssl_keys_id_seq
|
1172
|
+
START WITH 1
|
1173
|
+
INCREMENT BY 1
|
1174
|
+
NO MINVALUE
|
1175
|
+
NO MAXVALUE
|
1176
|
+
CACHE 1;
|
1177
|
+
|
1178
|
+
|
1179
|
+
ALTER TABLE public.ssl_keys_id_seq OWNER TO postgres;
|
1180
|
+
|
1181
|
+
--
|
1182
|
+
-- Name: ssl_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1183
|
+
--
|
1184
|
+
|
1185
|
+
ALTER SEQUENCE ssl_keys_id_seq OWNED BY ssl_keys.id;
|
1186
|
+
|
1187
|
+
|
1188
|
+
--
|
1189
|
+
-- Name: stages; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1190
|
+
--
|
1191
|
+
|
1192
|
+
CREATE TABLE stages (
|
1193
|
+
id integer NOT NULL,
|
1194
|
+
build_id integer,
|
1195
|
+
number integer,
|
1196
|
+
name character varying,
|
1197
|
+
state character varying,
|
1198
|
+
started_at timestamp without time zone,
|
1199
|
+
finished_at timestamp without time zone
|
1200
|
+
);
|
1201
|
+
|
1202
|
+
|
1203
|
+
ALTER TABLE public.stages OWNER TO postgres;
|
1204
|
+
|
1205
|
+
--
|
1206
|
+
-- Name: stages_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1207
|
+
--
|
1208
|
+
|
1209
|
+
CREATE SEQUENCE stages_id_seq
|
1210
|
+
START WITH 1
|
1211
|
+
INCREMENT BY 1
|
1212
|
+
NO MINVALUE
|
1213
|
+
NO MAXVALUE
|
1214
|
+
CACHE 1;
|
1215
|
+
|
1216
|
+
|
1217
|
+
ALTER TABLE public.stages_id_seq OWNER TO postgres;
|
1218
|
+
|
1219
|
+
--
|
1220
|
+
-- Name: stages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1221
|
+
--
|
1222
|
+
|
1223
|
+
ALTER SEQUENCE stages_id_seq OWNED BY stages.id;
|
1224
|
+
|
1225
|
+
|
1226
|
+
--
|
1227
|
+
-- Name: stars; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1228
|
+
--
|
1229
|
+
|
1230
|
+
CREATE TABLE stars (
|
1231
|
+
id integer NOT NULL,
|
1232
|
+
repository_id integer,
|
1233
|
+
user_id integer,
|
1234
|
+
created_at timestamp without time zone NOT NULL,
|
1235
|
+
updated_at timestamp without time zone NOT NULL
|
1236
|
+
);
|
1237
|
+
|
1238
|
+
|
1239
|
+
ALTER TABLE public.stars OWNER TO postgres;
|
1240
|
+
|
1241
|
+
--
|
1242
|
+
-- Name: stars_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1243
|
+
--
|
1244
|
+
|
1245
|
+
CREATE SEQUENCE stars_id_seq
|
1246
|
+
START WITH 1
|
1247
|
+
INCREMENT BY 1
|
1248
|
+
NO MINVALUE
|
1249
|
+
NO MAXVALUE
|
1250
|
+
CACHE 1;
|
1251
|
+
|
1252
|
+
|
1253
|
+
ALTER TABLE public.stars_id_seq OWNER TO postgres;
|
1254
|
+
|
1255
|
+
--
|
1256
|
+
-- Name: stars_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1257
|
+
--
|
1258
|
+
|
1259
|
+
ALTER SEQUENCE stars_id_seq OWNED BY stars.id;
|
1260
|
+
|
1261
|
+
|
1262
|
+
--
|
1263
|
+
-- Name: stripe_events; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1264
|
+
--
|
1265
|
+
|
1266
|
+
CREATE TABLE stripe_events (
|
1267
|
+
id integer NOT NULL,
|
1268
|
+
created_at timestamp without time zone,
|
1269
|
+
updated_at timestamp without time zone,
|
1270
|
+
event_object text,
|
1271
|
+
event_type character varying,
|
1272
|
+
date timestamp without time zone,
|
1273
|
+
event_id character varying
|
1274
|
+
);
|
1275
|
+
|
1276
|
+
|
1277
|
+
ALTER TABLE public.stripe_events OWNER TO postgres;
|
1278
|
+
|
1279
|
+
--
|
1280
|
+
-- Name: stripe_events_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1281
|
+
--
|
1282
|
+
|
1283
|
+
CREATE SEQUENCE stripe_events_id_seq
|
1284
|
+
START WITH 1
|
1285
|
+
INCREMENT BY 1
|
1286
|
+
NO MINVALUE
|
1287
|
+
NO MAXVALUE
|
1288
|
+
CACHE 1;
|
1289
|
+
|
1290
|
+
|
1291
|
+
ALTER TABLE public.stripe_events_id_seq OWNER TO postgres;
|
1292
|
+
|
1293
|
+
--
|
1294
|
+
-- Name: stripe_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1295
|
+
--
|
1296
|
+
|
1297
|
+
ALTER SEQUENCE stripe_events_id_seq OWNED BY stripe_events.id;
|
1298
|
+
|
1299
|
+
|
1300
|
+
--
|
1301
|
+
-- Name: subscriptions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1302
|
+
--
|
1303
|
+
|
1304
|
+
CREATE TABLE subscriptions (
|
1305
|
+
id integer NOT NULL,
|
1306
|
+
cc_token character varying,
|
1307
|
+
valid_to timestamp without time zone,
|
1308
|
+
owner_id integer,
|
1309
|
+
owner_type character varying,
|
1310
|
+
first_name character varying,
|
1311
|
+
last_name character varying,
|
1312
|
+
company character varying,
|
1313
|
+
zip_code character varying,
|
1314
|
+
address character varying,
|
1315
|
+
address2 character varying,
|
1316
|
+
city character varying,
|
1317
|
+
state character varying,
|
1318
|
+
country character varying,
|
1319
|
+
vat_id character varying,
|
1320
|
+
customer_id character varying,
|
1321
|
+
created_at timestamp without time zone,
|
1322
|
+
updated_at timestamp without time zone,
|
1323
|
+
cc_owner character varying,
|
1324
|
+
cc_last_digits character varying,
|
1325
|
+
cc_expiration_date character varying,
|
1326
|
+
billing_email character varying,
|
1327
|
+
selected_plan character varying,
|
1328
|
+
coupon character varying,
|
1329
|
+
contact_id integer,
|
1330
|
+
canceled_at timestamp without time zone,
|
1331
|
+
canceled_by_id integer,
|
1332
|
+
status character varying,
|
1333
|
+
source source_type DEFAULT 'unknown'::source_type NOT NULL,
|
1334
|
+
concurrency integer
|
1335
|
+
);
|
1336
|
+
|
1337
|
+
|
1338
|
+
ALTER TABLE public.subscriptions OWNER TO postgres;
|
1339
|
+
|
1340
|
+
--
|
1341
|
+
-- Name: subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1342
|
+
--
|
1343
|
+
|
1344
|
+
CREATE SEQUENCE subscriptions_id_seq
|
1345
|
+
START WITH 1
|
1346
|
+
INCREMENT BY 1
|
1347
|
+
NO MINVALUE
|
1348
|
+
NO MAXVALUE
|
1349
|
+
CACHE 1;
|
1350
|
+
|
1351
|
+
|
1352
|
+
ALTER TABLE public.subscriptions_id_seq OWNER TO postgres;
|
1353
|
+
|
1354
|
+
--
|
1355
|
+
-- Name: subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1356
|
+
--
|
1357
|
+
|
1358
|
+
ALTER SEQUENCE subscriptions_id_seq OWNED BY subscriptions.id;
|
1359
|
+
|
1360
|
+
|
1361
|
+
--
|
1362
|
+
-- Name: tags; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1363
|
+
--
|
1364
|
+
|
1365
|
+
CREATE TABLE tags (
|
1366
|
+
id integer NOT NULL,
|
1367
|
+
repository_id integer,
|
1368
|
+
name character varying,
|
1369
|
+
last_build_id integer,
|
1370
|
+
exists_on_github boolean,
|
1371
|
+
created_at timestamp without time zone,
|
1372
|
+
updated_at timestamp without time zone
|
1373
|
+
);
|
1374
|
+
|
1375
|
+
|
1376
|
+
ALTER TABLE public.tags OWNER TO postgres;
|
1377
|
+
|
1378
|
+
--
|
1379
|
+
-- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1380
|
+
--
|
1381
|
+
|
1382
|
+
CREATE SEQUENCE tags_id_seq
|
1383
|
+
START WITH 1
|
1384
|
+
INCREMENT BY 1
|
1385
|
+
NO MINVALUE
|
1386
|
+
NO MAXVALUE
|
1387
|
+
CACHE 1;
|
1388
|
+
|
1389
|
+
|
1390
|
+
ALTER TABLE public.tags_id_seq OWNER TO postgres;
|
1391
|
+
|
1392
|
+
--
|
1393
|
+
-- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1394
|
+
--
|
1395
|
+
|
1396
|
+
ALTER SEQUENCE tags_id_seq OWNED BY tags.id;
|
1397
|
+
|
1398
|
+
|
1399
|
+
--
|
1400
|
+
-- Name: tokens; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1401
|
+
--
|
1402
|
+
|
1403
|
+
CREATE TABLE tokens (
|
1404
|
+
id integer NOT NULL,
|
1405
|
+
user_id integer,
|
1406
|
+
token character varying,
|
1407
|
+
created_at timestamp without time zone NOT NULL,
|
1408
|
+
updated_at timestamp without time zone NOT NULL
|
1409
|
+
);
|
1410
|
+
|
1411
|
+
|
1412
|
+
ALTER TABLE public.tokens OWNER TO postgres;
|
1413
|
+
|
1414
|
+
--
|
1415
|
+
-- Name: tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1416
|
+
--
|
1417
|
+
|
1418
|
+
CREATE SEQUENCE tokens_id_seq
|
1419
|
+
START WITH 1
|
1420
|
+
INCREMENT BY 1
|
1421
|
+
NO MINVALUE
|
1422
|
+
NO MAXVALUE
|
1423
|
+
CACHE 1;
|
1424
|
+
|
1425
|
+
|
1426
|
+
ALTER TABLE public.tokens_id_seq OWNER TO postgres;
|
1427
|
+
|
1428
|
+
--
|
1429
|
+
-- Name: tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1430
|
+
--
|
1431
|
+
|
1432
|
+
ALTER SEQUENCE tokens_id_seq OWNED BY tokens.id;
|
1433
|
+
|
1434
|
+
|
1435
|
+
--
|
1436
|
+
-- Name: trial_allowances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1437
|
+
--
|
1438
|
+
|
1439
|
+
CREATE TABLE trial_allowances (
|
1440
|
+
id integer NOT NULL,
|
1441
|
+
trial_id integer,
|
1442
|
+
creator_id integer,
|
1443
|
+
creator_type character varying,
|
1444
|
+
builds_allowed integer,
|
1445
|
+
builds_remaining integer,
|
1446
|
+
created_at timestamp without time zone,
|
1447
|
+
updated_at timestamp without time zone
|
1448
|
+
);
|
1449
|
+
|
1450
|
+
|
1451
|
+
ALTER TABLE public.trial_allowances OWNER TO postgres;
|
1452
|
+
|
1453
|
+
--
|
1454
|
+
-- Name: trial_allowances_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1455
|
+
--
|
1456
|
+
|
1457
|
+
CREATE SEQUENCE trial_allowances_id_seq
|
1458
|
+
START WITH 1
|
1459
|
+
INCREMENT BY 1
|
1460
|
+
NO MINVALUE
|
1461
|
+
NO MAXVALUE
|
1462
|
+
CACHE 1;
|
1463
|
+
|
1464
|
+
|
1465
|
+
ALTER TABLE public.trial_allowances_id_seq OWNER TO postgres;
|
1466
|
+
|
1467
|
+
--
|
1468
|
+
-- Name: trial_allowances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1469
|
+
--
|
1470
|
+
|
1471
|
+
ALTER SEQUENCE trial_allowances_id_seq OWNED BY trial_allowances.id;
|
1472
|
+
|
1473
|
+
|
1474
|
+
--
|
1475
|
+
-- Name: trials; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1476
|
+
--
|
1477
|
+
|
1478
|
+
CREATE TABLE trials (
|
1479
|
+
id integer NOT NULL,
|
1480
|
+
owner_id integer,
|
1481
|
+
owner_type character varying,
|
1482
|
+
chartmogul_customer_uuids text[] DEFAULT '{}'::text[],
|
1483
|
+
status character varying DEFAULT 'new'::character varying,
|
1484
|
+
created_at timestamp without time zone NOT NULL,
|
1485
|
+
updated_at timestamp without time zone NOT NULL
|
1486
|
+
);
|
1487
|
+
|
1488
|
+
|
1489
|
+
ALTER TABLE public.trials OWNER TO postgres;
|
1490
|
+
|
1491
|
+
--
|
1492
|
+
-- Name: trials_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1493
|
+
--
|
1494
|
+
|
1495
|
+
CREATE SEQUENCE trials_id_seq
|
1496
|
+
START WITH 1
|
1497
|
+
INCREMENT BY 1
|
1498
|
+
NO MINVALUE
|
1499
|
+
NO MAXVALUE
|
1500
|
+
CACHE 1;
|
1501
|
+
|
1502
|
+
|
1503
|
+
ALTER TABLE public.trials_id_seq OWNER TO postgres;
|
1504
|
+
|
1505
|
+
--
|
1506
|
+
-- Name: trials_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1507
|
+
--
|
1508
|
+
|
1509
|
+
ALTER SEQUENCE trials_id_seq OWNED BY trials.id;
|
1510
|
+
|
1511
|
+
|
1512
|
+
--
|
1513
|
+
-- Name: urls; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1514
|
+
--
|
1515
|
+
|
1516
|
+
CREATE TABLE urls (
|
1517
|
+
id integer NOT NULL,
|
1518
|
+
url character varying,
|
1519
|
+
code character varying,
|
1520
|
+
created_at timestamp without time zone NOT NULL,
|
1521
|
+
updated_at timestamp without time zone NOT NULL
|
1522
|
+
);
|
1523
|
+
|
1524
|
+
|
1525
|
+
ALTER TABLE public.urls OWNER TO postgres;
|
1526
|
+
|
1527
|
+
--
|
1528
|
+
-- Name: urls_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1529
|
+
--
|
1530
|
+
|
1531
|
+
CREATE SEQUENCE urls_id_seq
|
1532
|
+
START WITH 1
|
1533
|
+
INCREMENT BY 1
|
1534
|
+
NO MINVALUE
|
1535
|
+
NO MAXVALUE
|
1536
|
+
CACHE 1;
|
1537
|
+
|
1538
|
+
|
1539
|
+
ALTER TABLE public.urls_id_seq OWNER TO postgres;
|
1540
|
+
|
1541
|
+
--
|
1542
|
+
-- Name: urls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1543
|
+
--
|
1544
|
+
|
1545
|
+
ALTER SEQUENCE urls_id_seq OWNED BY urls.id;
|
1546
|
+
|
1547
|
+
|
1548
|
+
--
|
1549
|
+
-- Name: user_beta_features; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1550
|
+
--
|
1551
|
+
|
1552
|
+
CREATE TABLE user_beta_features (
|
1553
|
+
id integer NOT NULL,
|
1554
|
+
user_id integer,
|
1555
|
+
beta_feature_id integer,
|
1556
|
+
enabled boolean,
|
1557
|
+
last_deactivated_at timestamp without time zone,
|
1558
|
+
last_activated_at timestamp without time zone
|
1559
|
+
);
|
1560
|
+
|
1561
|
+
|
1562
|
+
ALTER TABLE public.user_beta_features OWNER TO postgres;
|
1563
|
+
|
1564
|
+
--
|
1565
|
+
-- Name: user_beta_features_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1566
|
+
--
|
1567
|
+
|
1568
|
+
CREATE SEQUENCE user_beta_features_id_seq
|
1569
|
+
START WITH 1
|
1570
|
+
INCREMENT BY 1
|
1571
|
+
NO MINVALUE
|
1572
|
+
NO MAXVALUE
|
1573
|
+
CACHE 1;
|
1574
|
+
|
1575
|
+
|
1576
|
+
ALTER TABLE public.user_beta_features_id_seq OWNER TO postgres;
|
1577
|
+
|
1578
|
+
--
|
1579
|
+
-- Name: user_beta_features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1580
|
+
--
|
1581
|
+
|
1582
|
+
ALTER SEQUENCE user_beta_features_id_seq OWNED BY user_beta_features.id;
|
1583
|
+
|
1584
|
+
|
1585
|
+
--
|
1586
|
+
-- Name: users; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
1587
|
+
--
|
1588
|
+
|
1589
|
+
CREATE TABLE users (
|
1590
|
+
id integer NOT NULL,
|
1591
|
+
name character varying,
|
1592
|
+
login character varying,
|
1593
|
+
email character varying,
|
1594
|
+
created_at timestamp without time zone NOT NULL,
|
1595
|
+
updated_at timestamp without time zone NOT NULL,
|
1596
|
+
is_admin boolean DEFAULT false,
|
1597
|
+
github_id integer,
|
1598
|
+
github_oauth_token character varying,
|
1599
|
+
gravatar_id character varying,
|
1600
|
+
locale character varying,
|
1601
|
+
is_syncing boolean,
|
1602
|
+
synced_at timestamp without time zone,
|
1603
|
+
github_scopes text,
|
1604
|
+
education boolean,
|
1605
|
+
first_logged_in_at timestamp without time zone,
|
1606
|
+
avatar_url character varying,
|
1607
|
+
suspended boolean DEFAULT false,
|
1608
|
+
suspended_at timestamp without time zone
|
1609
|
+
);
|
1610
|
+
|
1611
|
+
|
1612
|
+
ALTER TABLE public.users OWNER TO postgres;
|
1613
|
+
|
1614
|
+
--
|
1615
|
+
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
|
1616
|
+
--
|
1617
|
+
|
1618
|
+
CREATE SEQUENCE users_id_seq
|
1619
|
+
START WITH 1
|
1620
|
+
INCREMENT BY 1
|
1621
|
+
NO MINVALUE
|
1622
|
+
NO MAXVALUE
|
1623
|
+
CACHE 1;
|
1624
|
+
|
1625
|
+
|
1626
|
+
ALTER TABLE public.users_id_seq OWNER TO postgres;
|
1627
|
+
|
1628
|
+
--
|
1629
|
+
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
|
1630
|
+
--
|
1631
|
+
|
1632
|
+
ALTER SEQUENCE users_id_seq OWNED BY users.id;
|
1633
|
+
|
1634
|
+
|
1635
|
+
SET search_path = sqitch, pg_catalog;
|
1636
|
+
|
1637
|
+
--
|
1638
|
+
-- Name: changes; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
1639
|
+
--
|
1640
|
+
|
1641
|
+
CREATE TABLE changes (
|
1642
|
+
change_id text NOT NULL,
|
1643
|
+
script_hash text,
|
1644
|
+
change text NOT NULL,
|
1645
|
+
project text NOT NULL,
|
1646
|
+
note text DEFAULT ''::text NOT NULL,
|
1647
|
+
committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
1648
|
+
committer_name text NOT NULL,
|
1649
|
+
committer_email text NOT NULL,
|
1650
|
+
planned_at timestamp with time zone NOT NULL,
|
1651
|
+
planner_name text NOT NULL,
|
1652
|
+
planner_email text NOT NULL
|
1653
|
+
);
|
1654
|
+
|
1655
|
+
|
1656
|
+
ALTER TABLE sqitch.changes OWNER TO postgres;
|
1657
|
+
|
1658
|
+
--
|
1659
|
+
-- Name: TABLE changes; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1660
|
+
--
|
1661
|
+
|
1662
|
+
COMMENT ON TABLE changes IS 'Tracks the changes currently deployed to the database.';
|
1663
|
+
|
1664
|
+
|
1665
|
+
--
|
1666
|
+
-- Name: COLUMN changes.change_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1667
|
+
--
|
1668
|
+
|
1669
|
+
COMMENT ON COLUMN changes.change_id IS 'Change primary key.';
|
1670
|
+
|
1671
|
+
|
1672
|
+
--
|
1673
|
+
-- Name: COLUMN changes.script_hash; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1674
|
+
--
|
1675
|
+
|
1676
|
+
COMMENT ON COLUMN changes.script_hash IS 'Deploy script SHA-1 hash.';
|
1677
|
+
|
1678
|
+
|
1679
|
+
--
|
1680
|
+
-- Name: COLUMN changes.change; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1681
|
+
--
|
1682
|
+
|
1683
|
+
COMMENT ON COLUMN changes.change IS 'Name of a deployed change.';
|
1684
|
+
|
1685
|
+
|
1686
|
+
--
|
1687
|
+
-- Name: COLUMN changes.project; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1688
|
+
--
|
1689
|
+
|
1690
|
+
COMMENT ON COLUMN changes.project IS 'Name of the Sqitch project to which the change belongs.';
|
1691
|
+
|
1692
|
+
|
1693
|
+
--
|
1694
|
+
-- Name: COLUMN changes.note; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1695
|
+
--
|
1696
|
+
|
1697
|
+
COMMENT ON COLUMN changes.note IS 'Description of the change.';
|
1698
|
+
|
1699
|
+
|
1700
|
+
--
|
1701
|
+
-- Name: COLUMN changes.committed_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1702
|
+
--
|
1703
|
+
|
1704
|
+
COMMENT ON COLUMN changes.committed_at IS 'Date the change was deployed.';
|
1705
|
+
|
1706
|
+
|
1707
|
+
--
|
1708
|
+
-- Name: COLUMN changes.committer_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1709
|
+
--
|
1710
|
+
|
1711
|
+
COMMENT ON COLUMN changes.committer_name IS 'Name of the user who deployed the change.';
|
1712
|
+
|
1713
|
+
|
1714
|
+
--
|
1715
|
+
-- Name: COLUMN changes.committer_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1716
|
+
--
|
1717
|
+
|
1718
|
+
COMMENT ON COLUMN changes.committer_email IS 'Email address of the user who deployed the change.';
|
1719
|
+
|
1720
|
+
|
1721
|
+
--
|
1722
|
+
-- Name: COLUMN changes.planned_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1723
|
+
--
|
1724
|
+
|
1725
|
+
COMMENT ON COLUMN changes.planned_at IS 'Date the change was added to the plan.';
|
1726
|
+
|
1727
|
+
|
1728
|
+
--
|
1729
|
+
-- Name: COLUMN changes.planner_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1730
|
+
--
|
1731
|
+
|
1732
|
+
COMMENT ON COLUMN changes.planner_name IS 'Name of the user who planed the change.';
|
1733
|
+
|
1734
|
+
|
1735
|
+
--
|
1736
|
+
-- Name: COLUMN changes.planner_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1737
|
+
--
|
1738
|
+
|
1739
|
+
COMMENT ON COLUMN changes.planner_email IS 'Email address of the user who planned the change.';
|
1740
|
+
|
1741
|
+
|
1742
|
+
--
|
1743
|
+
-- Name: dependencies; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
1744
|
+
--
|
1745
|
+
|
1746
|
+
CREATE TABLE dependencies (
|
1747
|
+
change_id text NOT NULL,
|
1748
|
+
type text NOT NULL,
|
1749
|
+
dependency text NOT NULL,
|
1750
|
+
dependency_id text,
|
1751
|
+
CONSTRAINT dependencies_check CHECK ((((type = 'require'::text) AND (dependency_id IS NOT NULL)) OR ((type = 'conflict'::text) AND (dependency_id IS NULL))))
|
1752
|
+
);
|
1753
|
+
|
1754
|
+
|
1755
|
+
ALTER TABLE sqitch.dependencies OWNER TO postgres;
|
1756
|
+
|
1757
|
+
--
|
1758
|
+
-- Name: TABLE dependencies; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1759
|
+
--
|
1760
|
+
|
1761
|
+
COMMENT ON TABLE dependencies IS 'Tracks the currently satisfied dependencies.';
|
1762
|
+
|
1763
|
+
|
1764
|
+
--
|
1765
|
+
-- Name: COLUMN dependencies.change_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1766
|
+
--
|
1767
|
+
|
1768
|
+
COMMENT ON COLUMN dependencies.change_id IS 'ID of the depending change.';
|
1769
|
+
|
1770
|
+
|
1771
|
+
--
|
1772
|
+
-- Name: COLUMN dependencies.type; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1773
|
+
--
|
1774
|
+
|
1775
|
+
COMMENT ON COLUMN dependencies.type IS 'Type of dependency.';
|
1776
|
+
|
1777
|
+
|
1778
|
+
--
|
1779
|
+
-- Name: COLUMN dependencies.dependency; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1780
|
+
--
|
1781
|
+
|
1782
|
+
COMMENT ON COLUMN dependencies.dependency IS 'Dependency name.';
|
1783
|
+
|
1784
|
+
|
1785
|
+
--
|
1786
|
+
-- Name: COLUMN dependencies.dependency_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1787
|
+
--
|
1788
|
+
|
1789
|
+
COMMENT ON COLUMN dependencies.dependency_id IS 'Change ID the dependency resolves to.';
|
1790
|
+
|
1791
|
+
|
1792
|
+
--
|
1793
|
+
-- Name: events; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
1794
|
+
--
|
1795
|
+
|
1796
|
+
CREATE TABLE events (
|
1797
|
+
event text NOT NULL,
|
1798
|
+
change_id text NOT NULL,
|
1799
|
+
change text NOT NULL,
|
1800
|
+
project text NOT NULL,
|
1801
|
+
note text DEFAULT ''::text NOT NULL,
|
1802
|
+
requires text[] DEFAULT '{}'::text[] NOT NULL,
|
1803
|
+
conflicts text[] DEFAULT '{}'::text[] NOT NULL,
|
1804
|
+
tags text[] DEFAULT '{}'::text[] NOT NULL,
|
1805
|
+
committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
1806
|
+
committer_name text NOT NULL,
|
1807
|
+
committer_email text NOT NULL,
|
1808
|
+
planned_at timestamp with time zone NOT NULL,
|
1809
|
+
planner_name text NOT NULL,
|
1810
|
+
planner_email text NOT NULL,
|
1811
|
+
CONSTRAINT events_event_check CHECK ((event = ANY (ARRAY['deploy'::text, 'revert'::text, 'fail'::text, 'merge'::text])))
|
1812
|
+
);
|
1813
|
+
|
1814
|
+
|
1815
|
+
ALTER TABLE sqitch.events OWNER TO postgres;
|
1816
|
+
|
1817
|
+
--
|
1818
|
+
-- Name: TABLE events; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1819
|
+
--
|
1820
|
+
|
1821
|
+
COMMENT ON TABLE events IS 'Contains full history of all deployment events.';
|
1822
|
+
|
1823
|
+
|
1824
|
+
--
|
1825
|
+
-- Name: COLUMN events.event; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1826
|
+
--
|
1827
|
+
|
1828
|
+
COMMENT ON COLUMN events.event IS 'Type of event.';
|
1829
|
+
|
1830
|
+
|
1831
|
+
--
|
1832
|
+
-- Name: COLUMN events.change_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1833
|
+
--
|
1834
|
+
|
1835
|
+
COMMENT ON COLUMN events.change_id IS 'Change ID.';
|
1836
|
+
|
1837
|
+
|
1838
|
+
--
|
1839
|
+
-- Name: COLUMN events.change; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1840
|
+
--
|
1841
|
+
|
1842
|
+
COMMENT ON COLUMN events.change IS 'Change name.';
|
1843
|
+
|
1844
|
+
|
1845
|
+
--
|
1846
|
+
-- Name: COLUMN events.project; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1847
|
+
--
|
1848
|
+
|
1849
|
+
COMMENT ON COLUMN events.project IS 'Name of the Sqitch project to which the change belongs.';
|
1850
|
+
|
1851
|
+
|
1852
|
+
--
|
1853
|
+
-- Name: COLUMN events.note; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1854
|
+
--
|
1855
|
+
|
1856
|
+
COMMENT ON COLUMN events.note IS 'Description of the change.';
|
1857
|
+
|
1858
|
+
|
1859
|
+
--
|
1860
|
+
-- Name: COLUMN events.requires; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1861
|
+
--
|
1862
|
+
|
1863
|
+
COMMENT ON COLUMN events.requires IS 'Array of the names of required changes.';
|
1864
|
+
|
1865
|
+
|
1866
|
+
--
|
1867
|
+
-- Name: COLUMN events.conflicts; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1868
|
+
--
|
1869
|
+
|
1870
|
+
COMMENT ON COLUMN events.conflicts IS 'Array of the names of conflicting changes.';
|
1871
|
+
|
1872
|
+
|
1873
|
+
--
|
1874
|
+
-- Name: COLUMN events.tags; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1875
|
+
--
|
1876
|
+
|
1877
|
+
COMMENT ON COLUMN events.tags IS 'Tags associated with the change.';
|
1878
|
+
|
1879
|
+
|
1880
|
+
--
|
1881
|
+
-- Name: COLUMN events.committed_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1882
|
+
--
|
1883
|
+
|
1884
|
+
COMMENT ON COLUMN events.committed_at IS 'Date the event was committed.';
|
1885
|
+
|
1886
|
+
|
1887
|
+
--
|
1888
|
+
-- Name: COLUMN events.committer_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1889
|
+
--
|
1890
|
+
|
1891
|
+
COMMENT ON COLUMN events.committer_name IS 'Name of the user who committed the event.';
|
1892
|
+
|
1893
|
+
|
1894
|
+
--
|
1895
|
+
-- Name: COLUMN events.committer_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1896
|
+
--
|
1897
|
+
|
1898
|
+
COMMENT ON COLUMN events.committer_email IS 'Email address of the user who committed the event.';
|
1899
|
+
|
1900
|
+
|
1901
|
+
--
|
1902
|
+
-- Name: COLUMN events.planned_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1903
|
+
--
|
1904
|
+
|
1905
|
+
COMMENT ON COLUMN events.planned_at IS 'Date the event was added to the plan.';
|
1906
|
+
|
1907
|
+
|
1908
|
+
--
|
1909
|
+
-- Name: COLUMN events.planner_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1910
|
+
--
|
1911
|
+
|
1912
|
+
COMMENT ON COLUMN events.planner_name IS 'Name of the user who planed the change.';
|
1913
|
+
|
1914
|
+
|
1915
|
+
--
|
1916
|
+
-- Name: COLUMN events.planner_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1917
|
+
--
|
1918
|
+
|
1919
|
+
COMMENT ON COLUMN events.planner_email IS 'Email address of the user who plan planned the change.';
|
1920
|
+
|
1921
|
+
|
1922
|
+
--
|
1923
|
+
-- Name: projects; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
1924
|
+
--
|
1925
|
+
|
1926
|
+
CREATE TABLE projects (
|
1927
|
+
project text NOT NULL,
|
1928
|
+
uri text,
|
1929
|
+
created_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
1930
|
+
creator_name text NOT NULL,
|
1931
|
+
creator_email text NOT NULL
|
1932
|
+
);
|
1933
|
+
|
1934
|
+
|
1935
|
+
ALTER TABLE sqitch.projects OWNER TO postgres;
|
1936
|
+
|
1937
|
+
--
|
1938
|
+
-- Name: TABLE projects; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1939
|
+
--
|
1940
|
+
|
1941
|
+
COMMENT ON TABLE projects IS 'Sqitch projects deployed to this database.';
|
1942
|
+
|
1943
|
+
|
1944
|
+
--
|
1945
|
+
-- Name: COLUMN projects.project; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1946
|
+
--
|
1947
|
+
|
1948
|
+
COMMENT ON COLUMN projects.project IS 'Unique Name of a project.';
|
1949
|
+
|
1950
|
+
|
1951
|
+
--
|
1952
|
+
-- Name: COLUMN projects.uri; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1953
|
+
--
|
1954
|
+
|
1955
|
+
COMMENT ON COLUMN projects.uri IS 'Optional project URI';
|
1956
|
+
|
1957
|
+
|
1958
|
+
--
|
1959
|
+
-- Name: COLUMN projects.created_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1960
|
+
--
|
1961
|
+
|
1962
|
+
COMMENT ON COLUMN projects.created_at IS 'Date the project was added to the database.';
|
1963
|
+
|
1964
|
+
|
1965
|
+
--
|
1966
|
+
-- Name: COLUMN projects.creator_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1967
|
+
--
|
1968
|
+
|
1969
|
+
COMMENT ON COLUMN projects.creator_name IS 'Name of the user who added the project.';
|
1970
|
+
|
1971
|
+
|
1972
|
+
--
|
1973
|
+
-- Name: COLUMN projects.creator_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1974
|
+
--
|
1975
|
+
|
1976
|
+
COMMENT ON COLUMN projects.creator_email IS 'Email address of the user who added the project.';
|
1977
|
+
|
1978
|
+
|
1979
|
+
--
|
1980
|
+
-- Name: releases; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
1981
|
+
--
|
1982
|
+
|
1983
|
+
CREATE TABLE releases (
|
1984
|
+
version real NOT NULL,
|
1985
|
+
installed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
1986
|
+
installer_name text NOT NULL,
|
1987
|
+
installer_email text NOT NULL
|
1988
|
+
);
|
1989
|
+
|
1990
|
+
|
1991
|
+
ALTER TABLE sqitch.releases OWNER TO postgres;
|
1992
|
+
|
1993
|
+
--
|
1994
|
+
-- Name: TABLE releases; Type: COMMENT; Schema: sqitch; Owner: postgres
|
1995
|
+
--
|
1996
|
+
|
1997
|
+
COMMENT ON TABLE releases IS 'Sqitch registry releases.';
|
1998
|
+
|
1999
|
+
|
2000
|
+
--
|
2001
|
+
-- Name: COLUMN releases.version; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2002
|
+
--
|
2003
|
+
|
2004
|
+
COMMENT ON COLUMN releases.version IS 'Version of the Sqitch registry.';
|
2005
|
+
|
2006
|
+
|
2007
|
+
--
|
2008
|
+
-- Name: COLUMN releases.installed_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2009
|
+
--
|
2010
|
+
|
2011
|
+
COMMENT ON COLUMN releases.installed_at IS 'Date the registry release was installed.';
|
2012
|
+
|
2013
|
+
|
2014
|
+
--
|
2015
|
+
-- Name: COLUMN releases.installer_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2016
|
+
--
|
2017
|
+
|
2018
|
+
COMMENT ON COLUMN releases.installer_name IS 'Name of the user who installed the registry release.';
|
2019
|
+
|
2020
|
+
|
2021
|
+
--
|
2022
|
+
-- Name: COLUMN releases.installer_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2023
|
+
--
|
2024
|
+
|
2025
|
+
COMMENT ON COLUMN releases.installer_email IS 'Email address of the user who installed the registry release.';
|
2026
|
+
|
2027
|
+
|
2028
|
+
--
|
2029
|
+
-- Name: tags; Type: TABLE; Schema: sqitch; Owner: postgres; Tablespace:
|
2030
|
+
--
|
2031
|
+
|
2032
|
+
CREATE TABLE tags (
|
2033
|
+
tag_id text NOT NULL,
|
2034
|
+
tag text NOT NULL,
|
2035
|
+
project text NOT NULL,
|
2036
|
+
change_id text NOT NULL,
|
2037
|
+
note text DEFAULT ''::text NOT NULL,
|
2038
|
+
committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
2039
|
+
committer_name text NOT NULL,
|
2040
|
+
committer_email text NOT NULL,
|
2041
|
+
planned_at timestamp with time zone NOT NULL,
|
2042
|
+
planner_name text NOT NULL,
|
2043
|
+
planner_email text NOT NULL
|
2044
|
+
);
|
2045
|
+
|
2046
|
+
|
2047
|
+
ALTER TABLE sqitch.tags OWNER TO postgres;
|
2048
|
+
|
2049
|
+
--
|
2050
|
+
-- Name: TABLE tags; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2051
|
+
--
|
2052
|
+
|
2053
|
+
COMMENT ON TABLE tags IS 'Tracks the tags currently applied to the database.';
|
2054
|
+
|
2055
|
+
|
2056
|
+
--
|
2057
|
+
-- Name: COLUMN tags.tag_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2058
|
+
--
|
2059
|
+
|
2060
|
+
COMMENT ON COLUMN tags.tag_id IS 'Tag primary key.';
|
2061
|
+
|
2062
|
+
|
2063
|
+
--
|
2064
|
+
-- Name: COLUMN tags.tag; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2065
|
+
--
|
2066
|
+
|
2067
|
+
COMMENT ON COLUMN tags.tag IS 'Project-unique tag name.';
|
2068
|
+
|
2069
|
+
|
2070
|
+
--
|
2071
|
+
-- Name: COLUMN tags.project; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2072
|
+
--
|
2073
|
+
|
2074
|
+
COMMENT ON COLUMN tags.project IS 'Name of the Sqitch project to which the tag belongs.';
|
2075
|
+
|
2076
|
+
|
2077
|
+
--
|
2078
|
+
-- Name: COLUMN tags.change_id; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2079
|
+
--
|
2080
|
+
|
2081
|
+
COMMENT ON COLUMN tags.change_id IS 'ID of last change deployed before the tag was applied.';
|
2082
|
+
|
2083
|
+
|
2084
|
+
--
|
2085
|
+
-- Name: COLUMN tags.note; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2086
|
+
--
|
2087
|
+
|
2088
|
+
COMMENT ON COLUMN tags.note IS 'Description of the tag.';
|
2089
|
+
|
2090
|
+
|
2091
|
+
--
|
2092
|
+
-- Name: COLUMN tags.committed_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2093
|
+
--
|
2094
|
+
|
2095
|
+
COMMENT ON COLUMN tags.committed_at IS 'Date the tag was applied to the database.';
|
2096
|
+
|
2097
|
+
|
2098
|
+
--
|
2099
|
+
-- Name: COLUMN tags.committer_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2100
|
+
--
|
2101
|
+
|
2102
|
+
COMMENT ON COLUMN tags.committer_name IS 'Name of the user who applied the tag.';
|
2103
|
+
|
2104
|
+
|
2105
|
+
--
|
2106
|
+
-- Name: COLUMN tags.committer_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2107
|
+
--
|
2108
|
+
|
2109
|
+
COMMENT ON COLUMN tags.committer_email IS 'Email address of the user who applied the tag.';
|
2110
|
+
|
2111
|
+
|
2112
|
+
--
|
2113
|
+
-- Name: COLUMN tags.planned_at; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2114
|
+
--
|
2115
|
+
|
2116
|
+
COMMENT ON COLUMN tags.planned_at IS 'Date the tag was added to the plan.';
|
2117
|
+
|
2118
|
+
|
2119
|
+
--
|
2120
|
+
-- Name: COLUMN tags.planner_name; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2121
|
+
--
|
2122
|
+
|
2123
|
+
COMMENT ON COLUMN tags.planner_name IS 'Name of the user who planed the tag.';
|
2124
|
+
|
2125
|
+
|
2126
|
+
--
|
2127
|
+
-- Name: COLUMN tags.planner_email; Type: COMMENT; Schema: sqitch; Owner: postgres
|
2128
|
+
--
|
2129
|
+
|
2130
|
+
COMMENT ON COLUMN tags.planner_email IS 'Email address of the user who planned the tag.';
|
2131
|
+
|
2132
|
+
|
2133
|
+
SET search_path = public, pg_catalog;
|
2134
|
+
|
2135
|
+
--
|
2136
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2137
|
+
--
|
2138
|
+
|
2139
|
+
ALTER TABLE ONLY abuses ALTER COLUMN id SET DEFAULT nextval('abuses_id_seq'::regclass);
|
2140
|
+
|
2141
|
+
|
2142
|
+
--
|
2143
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2144
|
+
--
|
2145
|
+
|
2146
|
+
ALTER TABLE ONLY annotation_providers ALTER COLUMN id SET DEFAULT nextval('annotation_providers_id_seq'::regclass);
|
2147
|
+
|
2148
|
+
|
2149
|
+
--
|
2150
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2151
|
+
--
|
2152
|
+
|
2153
|
+
ALTER TABLE ONLY annotations ALTER COLUMN id SET DEFAULT nextval('annotations_id_seq'::regclass);
|
2154
|
+
|
2155
|
+
|
2156
|
+
--
|
2157
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2158
|
+
--
|
2159
|
+
|
2160
|
+
ALTER TABLE ONLY beta_features ALTER COLUMN id SET DEFAULT nextval('beta_features_id_seq'::regclass);
|
2161
|
+
|
2162
|
+
|
2163
|
+
--
|
2164
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2165
|
+
--
|
2166
|
+
|
2167
|
+
ALTER TABLE ONLY branches ALTER COLUMN id SET DEFAULT nextval('branches_id_seq'::regclass);
|
2168
|
+
|
2169
|
+
|
2170
|
+
--
|
2171
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2172
|
+
--
|
2173
|
+
|
2174
|
+
ALTER TABLE ONLY broadcasts ALTER COLUMN id SET DEFAULT nextval('broadcasts_id_seq'::regclass);
|
2175
|
+
|
2176
|
+
|
2177
|
+
--
|
2178
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2179
|
+
--
|
2180
|
+
|
2181
|
+
ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
|
2182
|
+
|
2183
|
+
|
2184
|
+
--
|
2185
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2186
|
+
--
|
2187
|
+
|
2188
|
+
ALTER TABLE ONLY coupons ALTER COLUMN id SET DEFAULT nextval('coupons_id_seq'::regclass);
|
2189
|
+
|
2190
|
+
|
2191
|
+
--
|
2192
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2193
|
+
--
|
2194
|
+
|
2195
|
+
ALTER TABLE ONLY crons ALTER COLUMN id SET DEFAULT nextval('crons_id_seq'::regclass);
|
2196
|
+
|
2197
|
+
|
2198
|
+
--
|
2199
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2200
|
+
--
|
2201
|
+
|
2202
|
+
ALTER TABLE ONLY emails ALTER COLUMN id SET DEFAULT nextval('emails_id_seq'::regclass);
|
2203
|
+
|
2204
|
+
|
2205
|
+
--
|
2206
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2207
|
+
--
|
2208
|
+
|
2209
|
+
ALTER TABLE ONLY invoices ALTER COLUMN id SET DEFAULT nextval('invoices_id_seq'::regclass);
|
2210
|
+
|
2211
|
+
|
2212
|
+
--
|
2213
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2214
|
+
--
|
2215
|
+
|
2216
|
+
ALTER TABLE ONLY log_parts ALTER COLUMN id SET DEFAULT nextval('log_parts_id_seq'::regclass);
|
2217
|
+
|
2218
|
+
|
2219
|
+
--
|
2220
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2221
|
+
--
|
2222
|
+
|
2223
|
+
ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
|
2224
|
+
|
2225
|
+
|
2226
|
+
--
|
2227
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2228
|
+
--
|
2229
|
+
|
2230
|
+
ALTER TABLE ONLY memberships ALTER COLUMN id SET DEFAULT nextval('memberships_id_seq'::regclass);
|
2231
|
+
|
2232
|
+
|
2233
|
+
--
|
2234
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2235
|
+
--
|
2236
|
+
|
2237
|
+
ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
|
2238
|
+
|
2239
|
+
|
2240
|
+
--
|
2241
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2242
|
+
--
|
2243
|
+
|
2244
|
+
ALTER TABLE ONLY organizations ALTER COLUMN id SET DEFAULT nextval('organizations_id_seq'::regclass);
|
2245
|
+
|
2246
|
+
|
2247
|
+
--
|
2248
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2249
|
+
--
|
2250
|
+
|
2251
|
+
ALTER TABLE ONLY owner_groups ALTER COLUMN id SET DEFAULT nextval('owner_groups_id_seq'::regclass);
|
2252
|
+
|
2253
|
+
|
2254
|
+
--
|
2255
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2256
|
+
--
|
2257
|
+
|
2258
|
+
ALTER TABLE ONLY permissions ALTER COLUMN id SET DEFAULT nextval('permissions_id_seq'::regclass);
|
2259
|
+
|
2260
|
+
|
2261
|
+
--
|
2262
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2263
|
+
--
|
2264
|
+
|
2265
|
+
ALTER TABLE ONLY pull_requests ALTER COLUMN id SET DEFAULT nextval('pull_requests_id_seq'::regclass);
|
2266
|
+
|
2267
|
+
|
2268
|
+
--
|
2269
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2270
|
+
--
|
2271
|
+
|
2272
|
+
ALTER TABLE ONLY queueable_jobs ALTER COLUMN id SET DEFAULT nextval('queueable_jobs_id_seq'::regclass);
|
2273
|
+
|
2274
|
+
|
2275
|
+
--
|
2276
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2277
|
+
--
|
2278
|
+
|
2279
|
+
ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
|
2280
|
+
|
2281
|
+
|
2282
|
+
--
|
2283
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2284
|
+
--
|
2285
|
+
|
2286
|
+
ALTER TABLE ONLY requests ALTER COLUMN id SET DEFAULT nextval('requests_id_seq'::regclass);
|
2287
|
+
|
2288
|
+
|
2289
|
+
--
|
2290
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2291
|
+
--
|
2292
|
+
|
2293
|
+
ALTER TABLE ONLY ssl_keys ALTER COLUMN id SET DEFAULT nextval('ssl_keys_id_seq'::regclass);
|
2294
|
+
|
2295
|
+
|
2296
|
+
--
|
2297
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2298
|
+
--
|
2299
|
+
|
2300
|
+
ALTER TABLE ONLY stages ALTER COLUMN id SET DEFAULT nextval('stages_id_seq'::regclass);
|
2301
|
+
|
2302
|
+
|
2303
|
+
--
|
2304
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2305
|
+
--
|
2306
|
+
|
2307
|
+
ALTER TABLE ONLY stars ALTER COLUMN id SET DEFAULT nextval('stars_id_seq'::regclass);
|
2308
|
+
|
2309
|
+
|
2310
|
+
--
|
2311
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2312
|
+
--
|
2313
|
+
|
2314
|
+
ALTER TABLE ONLY stripe_events ALTER COLUMN id SET DEFAULT nextval('stripe_events_id_seq'::regclass);
|
2315
|
+
|
2316
|
+
|
2317
|
+
--
|
2318
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2319
|
+
--
|
2320
|
+
|
2321
|
+
ALTER TABLE ONLY subscriptions ALTER COLUMN id SET DEFAULT nextval('subscriptions_id_seq'::regclass);
|
2322
|
+
|
2323
|
+
|
2324
|
+
--
|
2325
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2326
|
+
--
|
2327
|
+
|
2328
|
+
ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass);
|
2329
|
+
|
2330
|
+
|
2331
|
+
--
|
2332
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2333
|
+
--
|
2334
|
+
|
2335
|
+
ALTER TABLE ONLY tokens ALTER COLUMN id SET DEFAULT nextval('tokens_id_seq'::regclass);
|
2336
|
+
|
2337
|
+
|
2338
|
+
--
|
2339
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2340
|
+
--
|
2341
|
+
|
2342
|
+
ALTER TABLE ONLY trial_allowances ALTER COLUMN id SET DEFAULT nextval('trial_allowances_id_seq'::regclass);
|
2343
|
+
|
2344
|
+
|
2345
|
+
--
|
2346
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2347
|
+
--
|
2348
|
+
|
2349
|
+
ALTER TABLE ONLY trials ALTER COLUMN id SET DEFAULT nextval('trials_id_seq'::regclass);
|
2350
|
+
|
2351
|
+
|
2352
|
+
--
|
2353
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2354
|
+
--
|
2355
|
+
|
2356
|
+
ALTER TABLE ONLY urls ALTER COLUMN id SET DEFAULT nextval('urls_id_seq'::regclass);
|
2357
|
+
|
2358
|
+
|
2359
|
+
--
|
2360
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2361
|
+
--
|
2362
|
+
|
2363
|
+
ALTER TABLE ONLY user_beta_features ALTER COLUMN id SET DEFAULT nextval('user_beta_features_id_seq'::regclass);
|
2364
|
+
|
2365
|
+
|
2366
|
+
--
|
2367
|
+
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
|
2368
|
+
--
|
2369
|
+
|
2370
|
+
ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
|
2371
|
+
|
2372
|
+
--
|
2373
|
+
-- Name: abuses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2374
|
+
--
|
2375
|
+
|
2376
|
+
SELECT pg_catalog.setval('abuses_id_seq', 1, false);
|
2377
|
+
|
2378
|
+
--
|
2379
|
+
-- Name: annotation_providers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2380
|
+
--
|
2381
|
+
|
2382
|
+
SELECT pg_catalog.setval('annotation_providers_id_seq', 1, false);
|
2383
|
+
|
2384
|
+
--
|
2385
|
+
-- Name: annotations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2386
|
+
--
|
2387
|
+
|
2388
|
+
SELECT pg_catalog.setval('annotations_id_seq', 1, false);
|
2389
|
+
|
2390
|
+
--
|
2391
|
+
-- Name: beta_features_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2392
|
+
--
|
2393
|
+
|
2394
|
+
SELECT pg_catalog.setval('beta_features_id_seq', 1, false);
|
2395
|
+
|
2396
|
+
--
|
2397
|
+
-- Name: branches_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2398
|
+
--
|
2399
|
+
|
2400
|
+
SELECT pg_catalog.setval('branches_id_seq', 72, true);
|
2401
|
+
|
2402
|
+
--
|
2403
|
+
-- Name: broadcasts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2404
|
+
--
|
2405
|
+
|
2406
|
+
SELECT pg_catalog.setval('broadcasts_id_seq', 1, false);
|
2407
|
+
|
2408
|
+
--
|
2409
|
+
-- Name: builds_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2410
|
+
--
|
2411
|
+
|
2412
|
+
SELECT pg_catalog.setval('builds_id_seq', 1, false);
|
2413
|
+
|
2414
|
+
--
|
2415
|
+
-- Name: commits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2416
|
+
--
|
2417
|
+
|
2418
|
+
SELECT pg_catalog.setval('commits_id_seq', 210, true);
|
2419
|
+
|
2420
|
+
--
|
2421
|
+
-- Name: coupons_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2422
|
+
--
|
2423
|
+
|
2424
|
+
SELECT pg_catalog.setval('coupons_id_seq', 1, false);
|
2425
|
+
|
2426
|
+
--
|
2427
|
+
-- Name: crons_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2428
|
+
--
|
2429
|
+
|
2430
|
+
SELECT pg_catalog.setval('crons_id_seq', 1, false);
|
2431
|
+
|
2432
|
+
--
|
2433
|
+
-- Name: emails_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2434
|
+
--
|
2435
|
+
|
2436
|
+
SELECT pg_catalog.setval('emails_id_seq', 8, true);
|
2437
|
+
|
2438
|
+
--
|
2439
|
+
-- Name: invoices_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2440
|
+
--
|
2441
|
+
|
2442
|
+
SELECT pg_catalog.setval('invoices_id_seq', 1, false);
|
2443
|
+
|
2444
|
+
--
|
2445
|
+
-- Name: jobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2446
|
+
--
|
2447
|
+
|
2448
|
+
SELECT pg_catalog.setval('jobs_id_seq', 1, true);
|
2449
|
+
|
2450
|
+
--
|
2451
|
+
-- Name: log_parts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2452
|
+
--
|
2453
|
+
|
2454
|
+
SELECT pg_catalog.setval('log_parts_id_seq', 7609, true);
|
2455
|
+
|
2456
|
+
--
|
2457
|
+
-- Name: ssl_keys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2458
|
+
--
|
2459
|
+
|
2460
|
+
SELECT pg_catalog.setval('ssl_keys_id_seq', 30, true);
|
2461
|
+
|
2462
|
+
|
2463
|
+
--
|
2464
|
+
-- Name: stages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2465
|
+
--
|
2466
|
+
|
2467
|
+
SELECT pg_catalog.setval('stages_id_seq', 19, true);
|
2468
|
+
|
2469
|
+
--
|
2470
|
+
-- Name: stars_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2471
|
+
--
|
2472
|
+
|
2473
|
+
SELECT pg_catalog.setval('stars_id_seq', 1, false);
|
2474
|
+
|
2475
|
+
--
|
2476
|
+
-- Name: stripe_events_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2477
|
+
--
|
2478
|
+
|
2479
|
+
SELECT pg_catalog.setval('stripe_events_id_seq', 1, false);
|
2480
|
+
|
2481
|
+
--
|
2482
|
+
-- Name: subscriptions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2483
|
+
--
|
2484
|
+
|
2485
|
+
SELECT pg_catalog.setval('subscriptions_id_seq', 1, false);
|
2486
|
+
|
2487
|
+
--
|
2488
|
+
-- Name: tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2489
|
+
--
|
2490
|
+
|
2491
|
+
SELECT pg_catalog.setval('tags_id_seq', 1, false);
|
2492
|
+
|
2493
|
+
--
|
2494
|
+
-- Name: tokens_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2495
|
+
--
|
2496
|
+
|
2497
|
+
SELECT pg_catalog.setval('tokens_id_seq', 8, true);
|
2498
|
+
|
2499
|
+
--
|
2500
|
+
-- Name: trial_allowances_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2501
|
+
--
|
2502
|
+
|
2503
|
+
SELECT pg_catalog.setval('trial_allowances_id_seq', 1, false);
|
2504
|
+
|
2505
|
+
--
|
2506
|
+
-- Name: trials_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2507
|
+
--
|
2508
|
+
|
2509
|
+
SELECT pg_catalog.setval('trials_id_seq', 1, false);
|
2510
|
+
|
2511
|
+
--
|
2512
|
+
-- Name: urls_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2513
|
+
--
|
2514
|
+
|
2515
|
+
SELECT pg_catalog.setval('urls_id_seq', 1, false);
|
2516
|
+
|
2517
|
+
--
|
2518
|
+
-- Name: user_beta_features_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2519
|
+
--
|
2520
|
+
|
2521
|
+
SELECT pg_catalog.setval('user_beta_features_id_seq', 1, false);
|
2522
|
+
|
2523
|
+
--
|
2524
|
+
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
|
2525
|
+
--
|
2526
|
+
|
2527
|
+
SELECT pg_catalog.setval('users_id_seq', 8, true);
|
2528
|
+
|
2529
|
+
|
2530
|
+
SET search_path = sqitch, pg_catalog;
|
2531
|
+
|
2532
|
+
|
2533
|
+
SET search_path = public, pg_catalog;
|
2534
|
+
|
2535
|
+
--
|
2536
|
+
-- Name: abuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2537
|
+
--
|
2538
|
+
|
2539
|
+
ALTER TABLE ONLY abuses
|
2540
|
+
ADD CONSTRAINT abuses_pkey PRIMARY KEY (id);
|
2541
|
+
|
2542
|
+
|
2543
|
+
--
|
2544
|
+
-- Name: annotation_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2545
|
+
--
|
2546
|
+
|
2547
|
+
ALTER TABLE ONLY annotation_providers
|
2548
|
+
ADD CONSTRAINT annotation_providers_pkey PRIMARY KEY (id);
|
2549
|
+
|
2550
|
+
|
2551
|
+
--
|
2552
|
+
-- Name: annotations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2553
|
+
--
|
2554
|
+
|
2555
|
+
ALTER TABLE ONLY annotations
|
2556
|
+
ADD CONSTRAINT annotations_pkey PRIMARY KEY (id);
|
2557
|
+
|
2558
|
+
|
2559
|
+
--
|
2560
|
+
-- Name: beta_features_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2561
|
+
--
|
2562
|
+
|
2563
|
+
ALTER TABLE ONLY beta_features
|
2564
|
+
ADD CONSTRAINT beta_features_pkey PRIMARY KEY (id);
|
2565
|
+
|
2566
|
+
|
2567
|
+
--
|
2568
|
+
-- Name: branches_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2569
|
+
--
|
2570
|
+
|
2571
|
+
ALTER TABLE ONLY branches
|
2572
|
+
ADD CONSTRAINT branches_pkey PRIMARY KEY (id);
|
2573
|
+
|
2574
|
+
|
2575
|
+
--
|
2576
|
+
-- Name: broadcasts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2577
|
+
--
|
2578
|
+
|
2579
|
+
ALTER TABLE ONLY broadcasts
|
2580
|
+
ADD CONSTRAINT broadcasts_pkey PRIMARY KEY (id);
|
2581
|
+
|
2582
|
+
|
2583
|
+
--
|
2584
|
+
-- Name: builds_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2585
|
+
--
|
2586
|
+
|
2587
|
+
ALTER TABLE ONLY builds
|
2588
|
+
ADD CONSTRAINT builds_pkey PRIMARY KEY (id);
|
2589
|
+
|
2590
|
+
|
2591
|
+
--
|
2592
|
+
-- Name: commits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2593
|
+
--
|
2594
|
+
|
2595
|
+
ALTER TABLE ONLY commits
|
2596
|
+
ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
|
2597
|
+
|
2598
|
+
|
2599
|
+
--
|
2600
|
+
-- Name: coupons_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2601
|
+
--
|
2602
|
+
|
2603
|
+
ALTER TABLE ONLY coupons
|
2604
|
+
ADD CONSTRAINT coupons_pkey PRIMARY KEY (id);
|
2605
|
+
|
2606
|
+
|
2607
|
+
--
|
2608
|
+
-- Name: crons_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2609
|
+
--
|
2610
|
+
|
2611
|
+
ALTER TABLE ONLY crons
|
2612
|
+
ADD CONSTRAINT crons_pkey PRIMARY KEY (id);
|
2613
|
+
|
2614
|
+
|
2615
|
+
--
|
2616
|
+
-- Name: emails_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2617
|
+
--
|
2618
|
+
|
2619
|
+
ALTER TABLE ONLY emails
|
2620
|
+
ADD CONSTRAINT emails_pkey PRIMARY KEY (id);
|
2621
|
+
|
2622
|
+
|
2623
|
+
--
|
2624
|
+
-- Name: invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2625
|
+
--
|
2626
|
+
|
2627
|
+
ALTER TABLE ONLY invoices
|
2628
|
+
ADD CONSTRAINT invoices_pkey PRIMARY KEY (id);
|
2629
|
+
|
2630
|
+
|
2631
|
+
--
|
2632
|
+
-- Name: jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2633
|
+
--
|
2634
|
+
|
2635
|
+
ALTER TABLE ONLY jobs
|
2636
|
+
ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
|
2637
|
+
|
2638
|
+
|
2639
|
+
--
|
2640
|
+
-- Name: log_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2641
|
+
--
|
2642
|
+
|
2643
|
+
ALTER TABLE ONLY log_parts
|
2644
|
+
ADD CONSTRAINT log_parts_pkey PRIMARY KEY (id);
|
2645
|
+
|
2646
|
+
|
2647
|
+
--
|
2648
|
+
-- Name: logs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2649
|
+
--
|
2650
|
+
|
2651
|
+
ALTER TABLE ONLY logs
|
2652
|
+
ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
|
2653
|
+
|
2654
|
+
|
2655
|
+
--
|
2656
|
+
-- Name: memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2657
|
+
--
|
2658
|
+
|
2659
|
+
ALTER TABLE ONLY memberships
|
2660
|
+
ADD CONSTRAINT memberships_pkey PRIMARY KEY (id);
|
2661
|
+
|
2662
|
+
|
2663
|
+
--
|
2664
|
+
-- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2665
|
+
--
|
2666
|
+
|
2667
|
+
ALTER TABLE ONLY messages
|
2668
|
+
ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
|
2669
|
+
|
2670
|
+
|
2671
|
+
--
|
2672
|
+
-- Name: organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2673
|
+
--
|
2674
|
+
|
2675
|
+
ALTER TABLE ONLY organizations
|
2676
|
+
ADD CONSTRAINT organizations_pkey PRIMARY KEY (id);
|
2677
|
+
|
2678
|
+
|
2679
|
+
--
|
2680
|
+
-- Name: owner_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2681
|
+
--
|
2682
|
+
|
2683
|
+
ALTER TABLE ONLY owner_groups
|
2684
|
+
ADD CONSTRAINT owner_groups_pkey PRIMARY KEY (id);
|
2685
|
+
|
2686
|
+
|
2687
|
+
--
|
2688
|
+
-- Name: permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2689
|
+
--
|
2690
|
+
|
2691
|
+
ALTER TABLE ONLY permissions
|
2692
|
+
ADD CONSTRAINT permissions_pkey PRIMARY KEY (id);
|
2693
|
+
|
2694
|
+
|
2695
|
+
--
|
2696
|
+
-- Name: pull_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2697
|
+
--
|
2698
|
+
|
2699
|
+
ALTER TABLE ONLY pull_requests
|
2700
|
+
ADD CONSTRAINT pull_requests_pkey PRIMARY KEY (id);
|
2701
|
+
|
2702
|
+
|
2703
|
+
--
|
2704
|
+
-- Name: queueable_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2705
|
+
--
|
2706
|
+
|
2707
|
+
ALTER TABLE ONLY queueable_jobs
|
2708
|
+
ADD CONSTRAINT queueable_jobs_pkey PRIMARY KEY (id);
|
2709
|
+
|
2710
|
+
|
2711
|
+
--
|
2712
|
+
-- Name: repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2713
|
+
--
|
2714
|
+
|
2715
|
+
ALTER TABLE ONLY repositories
|
2716
|
+
ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
|
2717
|
+
|
2718
|
+
|
2719
|
+
--
|
2720
|
+
-- Name: requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2721
|
+
--
|
2722
|
+
|
2723
|
+
ALTER TABLE ONLY requests
|
2724
|
+
ADD CONSTRAINT requests_pkey PRIMARY KEY (id);
|
2725
|
+
|
2726
|
+
|
2727
|
+
--
|
2728
|
+
-- Name: ssl_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2729
|
+
--
|
2730
|
+
|
2731
|
+
ALTER TABLE ONLY ssl_keys
|
2732
|
+
ADD CONSTRAINT ssl_keys_pkey PRIMARY KEY (id);
|
2733
|
+
|
2734
|
+
|
2735
|
+
--
|
2736
|
+
-- Name: stages_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2737
|
+
--
|
2738
|
+
|
2739
|
+
ALTER TABLE ONLY stages
|
2740
|
+
ADD CONSTRAINT stages_pkey PRIMARY KEY (id);
|
2741
|
+
|
2742
|
+
|
2743
|
+
--
|
2744
|
+
-- Name: stars_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2745
|
+
--
|
2746
|
+
|
2747
|
+
ALTER TABLE ONLY stars
|
2748
|
+
ADD CONSTRAINT stars_pkey PRIMARY KEY (id);
|
2749
|
+
|
2750
|
+
|
2751
|
+
--
|
2752
|
+
-- Name: stripe_events_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2753
|
+
--
|
2754
|
+
|
2755
|
+
ALTER TABLE ONLY stripe_events
|
2756
|
+
ADD CONSTRAINT stripe_events_pkey PRIMARY KEY (id);
|
2757
|
+
|
2758
|
+
|
2759
|
+
--
|
2760
|
+
-- Name: subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2761
|
+
--
|
2762
|
+
|
2763
|
+
ALTER TABLE ONLY subscriptions
|
2764
|
+
ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id);
|
2765
|
+
|
2766
|
+
|
2767
|
+
--
|
2768
|
+
-- Name: tags_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2769
|
+
--
|
2770
|
+
|
2771
|
+
ALTER TABLE ONLY tags
|
2772
|
+
ADD CONSTRAINT tags_pkey PRIMARY KEY (id);
|
2773
|
+
|
2774
|
+
|
2775
|
+
--
|
2776
|
+
-- Name: tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2777
|
+
--
|
2778
|
+
|
2779
|
+
ALTER TABLE ONLY tokens
|
2780
|
+
ADD CONSTRAINT tokens_pkey PRIMARY KEY (id);
|
2781
|
+
|
2782
|
+
|
2783
|
+
--
|
2784
|
+
-- Name: trial_allowances_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2785
|
+
--
|
2786
|
+
|
2787
|
+
ALTER TABLE ONLY trial_allowances
|
2788
|
+
ADD CONSTRAINT trial_allowances_pkey PRIMARY KEY (id);
|
2789
|
+
|
2790
|
+
|
2791
|
+
--
|
2792
|
+
-- Name: trials_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2793
|
+
--
|
2794
|
+
|
2795
|
+
ALTER TABLE ONLY trials
|
2796
|
+
ADD CONSTRAINT trials_pkey PRIMARY KEY (id);
|
2797
|
+
|
2798
|
+
|
2799
|
+
--
|
2800
|
+
-- Name: urls_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2801
|
+
--
|
2802
|
+
|
2803
|
+
ALTER TABLE ONLY urls
|
2804
|
+
ADD CONSTRAINT urls_pkey PRIMARY KEY (id);
|
2805
|
+
|
2806
|
+
|
2807
|
+
--
|
2808
|
+
-- Name: user_beta_features_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2809
|
+
--
|
2810
|
+
|
2811
|
+
ALTER TABLE ONLY user_beta_features
|
2812
|
+
ADD CONSTRAINT user_beta_features_pkey PRIMARY KEY (id);
|
2813
|
+
|
2814
|
+
|
2815
|
+
--
|
2816
|
+
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
|
2817
|
+
--
|
2818
|
+
|
2819
|
+
ALTER TABLE ONLY users
|
2820
|
+
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
2821
|
+
|
2822
|
+
|
2823
|
+
SET search_path = sqitch, pg_catalog;
|
2824
|
+
|
2825
|
+
--
|
2826
|
+
-- Name: changes_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2827
|
+
--
|
2828
|
+
|
2829
|
+
ALTER TABLE ONLY changes
|
2830
|
+
ADD CONSTRAINT changes_pkey PRIMARY KEY (change_id);
|
2831
|
+
|
2832
|
+
|
2833
|
+
--
|
2834
|
+
-- Name: changes_project_script_hash_key; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2835
|
+
--
|
2836
|
+
|
2837
|
+
ALTER TABLE ONLY changes
|
2838
|
+
ADD CONSTRAINT changes_project_script_hash_key UNIQUE (project, script_hash);
|
2839
|
+
|
2840
|
+
|
2841
|
+
--
|
2842
|
+
-- Name: dependencies_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2843
|
+
--
|
2844
|
+
|
2845
|
+
ALTER TABLE ONLY dependencies
|
2846
|
+
ADD CONSTRAINT dependencies_pkey PRIMARY KEY (change_id, dependency);
|
2847
|
+
|
2848
|
+
|
2849
|
+
--
|
2850
|
+
-- Name: events_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2851
|
+
--
|
2852
|
+
|
2853
|
+
ALTER TABLE ONLY events
|
2854
|
+
ADD CONSTRAINT events_pkey PRIMARY KEY (change_id, committed_at);
|
2855
|
+
|
2856
|
+
|
2857
|
+
--
|
2858
|
+
-- Name: projects_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2859
|
+
--
|
2860
|
+
|
2861
|
+
ALTER TABLE ONLY projects
|
2862
|
+
ADD CONSTRAINT projects_pkey PRIMARY KEY (project);
|
2863
|
+
|
2864
|
+
|
2865
|
+
--
|
2866
|
+
-- Name: projects_uri_key; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2867
|
+
--
|
2868
|
+
|
2869
|
+
ALTER TABLE ONLY projects
|
2870
|
+
ADD CONSTRAINT projects_uri_key UNIQUE (uri);
|
2871
|
+
|
2872
|
+
|
2873
|
+
--
|
2874
|
+
-- Name: releases_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2875
|
+
--
|
2876
|
+
|
2877
|
+
ALTER TABLE ONLY releases
|
2878
|
+
ADD CONSTRAINT releases_pkey PRIMARY KEY (version);
|
2879
|
+
|
2880
|
+
|
2881
|
+
--
|
2882
|
+
-- Name: tags_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2883
|
+
--
|
2884
|
+
|
2885
|
+
ALTER TABLE ONLY tags
|
2886
|
+
ADD CONSTRAINT tags_pkey PRIMARY KEY (tag_id);
|
2887
|
+
|
2888
|
+
|
2889
|
+
--
|
2890
|
+
-- Name: tags_project_tag_key; Type: CONSTRAINT; Schema: sqitch; Owner: postgres; Tablespace:
|
2891
|
+
--
|
2892
|
+
|
2893
|
+
ALTER TABLE ONLY tags
|
2894
|
+
ADD CONSTRAINT tags_project_tag_key UNIQUE (project, tag);
|
2895
|
+
|
2896
|
+
|
2897
|
+
SET search_path = public, pg_catalog;
|
2898
|
+
|
2899
|
+
--
|
2900
|
+
-- Name: index_abuses_on_owner; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2901
|
+
--
|
2902
|
+
|
2903
|
+
CREATE INDEX index_abuses_on_owner ON abuses USING btree (owner_id);
|
2904
|
+
|
2905
|
+
|
2906
|
+
--
|
2907
|
+
-- Name: index_abuses_on_owner_id_and_owner_type_and_level; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2908
|
+
--
|
2909
|
+
|
2910
|
+
CREATE UNIQUE INDEX index_abuses_on_owner_id_and_owner_type_and_level ON abuses USING btree (owner_id, owner_type, level);
|
2911
|
+
|
2912
|
+
|
2913
|
+
--
|
2914
|
+
-- Name: index_annotations_on_job_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2915
|
+
--
|
2916
|
+
|
2917
|
+
CREATE INDEX index_annotations_on_job_id ON annotations USING btree (job_id);
|
2918
|
+
|
2919
|
+
|
2920
|
+
--
|
2921
|
+
-- Name: index_branches_on_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2922
|
+
--
|
2923
|
+
|
2924
|
+
CREATE INDEX index_branches_on_repository_id ON branches USING btree (repository_id);
|
2925
|
+
|
2926
|
+
|
2927
|
+
--
|
2928
|
+
-- Name: index_branches_on_repository_id_and_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2929
|
+
--
|
2930
|
+
|
2931
|
+
CREATE UNIQUE INDEX index_branches_on_repository_id_and_name ON branches USING btree (repository_id, name);
|
2932
|
+
|
2933
|
+
|
2934
|
+
--
|
2935
|
+
-- Name: index_broadcasts_on_recipient_id_and_recipient_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2936
|
+
--
|
2937
|
+
|
2938
|
+
CREATE INDEX index_broadcasts_on_recipient_id_and_recipient_type ON broadcasts USING btree (recipient_id, recipient_type);
|
2939
|
+
|
2940
|
+
|
2941
|
+
--
|
2942
|
+
-- Name: index_builds_on_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2943
|
+
--
|
2944
|
+
|
2945
|
+
CREATE INDEX index_builds_on_repository_id ON builds USING btree (repository_id);
|
2946
|
+
|
2947
|
+
|
2948
|
+
--
|
2949
|
+
-- Name: index_builds_on_repository_id_and_branch_and_event_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2950
|
+
--
|
2951
|
+
|
2952
|
+
CREATE INDEX index_builds_on_repository_id_and_branch_and_event_type ON builds USING btree (repository_id, branch, event_type) WHERE ((state)::text = ANY ((ARRAY['created'::character varying, 'queued'::character varying, 'received'::character varying])::text[]));
|
2953
|
+
|
2954
|
+
|
2955
|
+
--
|
2956
|
+
-- Name: index_builds_on_repository_id_and_branch_and_event_type_and_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2957
|
+
--
|
2958
|
+
|
2959
|
+
CREATE INDEX index_builds_on_repository_id_and_branch_and_event_type_and_id ON builds USING btree (repository_id, branch, event_type, id);
|
2960
|
+
|
2961
|
+
|
2962
|
+
--
|
2963
|
+
-- Name: index_builds_on_repository_id_and_branch_and_id_desc; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2964
|
+
--
|
2965
|
+
|
2966
|
+
CREATE INDEX index_builds_on_repository_id_and_branch_and_id_desc ON builds USING btree (repository_id, branch, id DESC);
|
2967
|
+
|
2968
|
+
|
2969
|
+
--
|
2970
|
+
-- Name: index_builds_on_repository_id_and_number; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2971
|
+
--
|
2972
|
+
|
2973
|
+
CREATE INDEX index_builds_on_repository_id_and_number ON builds USING btree (repository_id, ((number)::integer));
|
2974
|
+
|
2975
|
+
|
2976
|
+
--
|
2977
|
+
-- Name: index_builds_on_repository_id_and_number_and_event_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2978
|
+
--
|
2979
|
+
|
2980
|
+
CREATE INDEX index_builds_on_repository_id_and_number_and_event_type ON builds USING btree (repository_id, number, event_type);
|
2981
|
+
|
2982
|
+
|
2983
|
+
--
|
2984
|
+
-- Name: index_builds_on_request_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2985
|
+
--
|
2986
|
+
|
2987
|
+
CREATE INDEX index_builds_on_request_id ON builds USING btree (request_id);
|
2988
|
+
|
2989
|
+
|
2990
|
+
--
|
2991
|
+
-- Name: index_builds_on_sender_type_and_sender_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2992
|
+
--
|
2993
|
+
|
2994
|
+
CREATE INDEX index_builds_on_sender_type_and_sender_id ON builds USING btree (sender_type, sender_id);
|
2995
|
+
|
2996
|
+
|
2997
|
+
--
|
2998
|
+
-- Name: index_builds_on_state; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
2999
|
+
--
|
3000
|
+
|
3001
|
+
CREATE INDEX index_builds_on_state ON builds USING btree (state);
|
3002
|
+
|
3003
|
+
|
3004
|
+
--
|
3005
|
+
-- Name: index_emails_on_email; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3006
|
+
--
|
3007
|
+
|
3008
|
+
CREATE INDEX index_emails_on_email ON emails USING btree (email);
|
3009
|
+
|
3010
|
+
|
3011
|
+
--
|
3012
|
+
-- Name: index_emails_on_user_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3013
|
+
--
|
3014
|
+
|
3015
|
+
CREATE INDEX index_emails_on_user_id ON emails USING btree (user_id);
|
3016
|
+
|
3017
|
+
|
3018
|
+
--
|
3019
|
+
-- Name: index_invoices_on_stripe_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3020
|
+
--
|
3021
|
+
|
3022
|
+
CREATE INDEX index_invoices_on_stripe_id ON invoices USING btree (stripe_id);
|
3023
|
+
|
3024
|
+
|
3025
|
+
--
|
3026
|
+
-- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3027
|
+
--
|
3028
|
+
|
3029
|
+
CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
|
3030
|
+
|
3031
|
+
|
3032
|
+
--
|
3033
|
+
-- Name: index_jobs_on_owner_id_and_owner_type_and_state; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3034
|
+
--
|
3035
|
+
|
3036
|
+
CREATE INDEX index_jobs_on_owner_id_and_owner_type_and_state ON jobs USING btree (owner_id, owner_type, state);
|
3037
|
+
|
3038
|
+
|
3039
|
+
--
|
3040
|
+
-- Name: index_jobs_on_source_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3041
|
+
--
|
3042
|
+
|
3043
|
+
CREATE INDEX index_jobs_on_source_id ON jobs USING btree (source_id);
|
3044
|
+
|
3045
|
+
|
3046
|
+
--
|
3047
|
+
-- Name: index_jobs_on_stage_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3048
|
+
--
|
3049
|
+
|
3050
|
+
CREATE INDEX index_jobs_on_stage_id ON jobs USING btree (stage_id);
|
3051
|
+
|
3052
|
+
|
3053
|
+
--
|
3054
|
+
-- Name: index_jobs_on_state; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3055
|
+
--
|
3056
|
+
|
3057
|
+
CREATE INDEX index_jobs_on_state ON jobs USING btree (state);
|
3058
|
+
|
3059
|
+
|
3060
|
+
--
|
3061
|
+
-- Name: index_jobs_on_type_and_source_id_and_source_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3062
|
+
--
|
3063
|
+
|
3064
|
+
CREATE INDEX index_jobs_on_type_and_source_id_and_source_type ON jobs USING btree (type, source_id, source_type);
|
3065
|
+
|
3066
|
+
|
3067
|
+
--
|
3068
|
+
-- Name: index_jobs_on_updated_at; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3069
|
+
--
|
3070
|
+
|
3071
|
+
CREATE INDEX index_jobs_on_updated_at ON jobs USING btree (updated_at);
|
3072
|
+
|
3073
|
+
|
3074
|
+
--
|
3075
|
+
-- Name: index_log_parts_on_created_at; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3076
|
+
--
|
3077
|
+
|
3078
|
+
CREATE INDEX index_log_parts_on_created_at ON log_parts USING btree (created_at);
|
3079
|
+
|
3080
|
+
|
3081
|
+
--
|
3082
|
+
-- Name: index_log_parts_on_log_id_and_number; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3083
|
+
--
|
3084
|
+
|
3085
|
+
CREATE INDEX index_log_parts_on_log_id_and_number ON log_parts USING btree (log_id, number);
|
3086
|
+
|
3087
|
+
|
3088
|
+
--
|
3089
|
+
-- Name: index_logs_on_archive_verified; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3090
|
+
--
|
3091
|
+
|
3092
|
+
CREATE INDEX index_logs_on_archive_verified ON logs USING btree (archive_verified);
|
3093
|
+
|
3094
|
+
|
3095
|
+
--
|
3096
|
+
-- Name: index_logs_on_archived_at; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3097
|
+
--
|
3098
|
+
|
3099
|
+
CREATE INDEX index_logs_on_archived_at ON logs USING btree (archived_at);
|
3100
|
+
|
3101
|
+
|
3102
|
+
--
|
3103
|
+
-- Name: index_logs_on_job_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3104
|
+
--
|
3105
|
+
|
3106
|
+
CREATE INDEX index_logs_on_job_id ON logs USING btree (job_id);
|
3107
|
+
|
3108
|
+
|
3109
|
+
--
|
3110
|
+
-- Name: index_memberships_on_user_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3111
|
+
--
|
3112
|
+
|
3113
|
+
CREATE INDEX index_memberships_on_user_id ON memberships USING btree (user_id);
|
3114
|
+
|
3115
|
+
|
3116
|
+
--
|
3117
|
+
-- Name: index_messages_on_subject_type_and_subject_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3118
|
+
--
|
3119
|
+
|
3120
|
+
CREATE INDEX index_messages_on_subject_type_and_subject_id ON messages USING btree (subject_type, subject_id);
|
3121
|
+
|
3122
|
+
|
3123
|
+
--
|
3124
|
+
-- Name: index_organizations_on_github_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3125
|
+
--
|
3126
|
+
|
3127
|
+
CREATE UNIQUE INDEX index_organizations_on_github_id ON organizations USING btree (github_id);
|
3128
|
+
|
3129
|
+
|
3130
|
+
--
|
3131
|
+
-- Name: index_organizations_on_login; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3132
|
+
--
|
3133
|
+
|
3134
|
+
CREATE INDEX index_organizations_on_login ON organizations USING btree (login);
|
3135
|
+
|
3136
|
+
|
3137
|
+
--
|
3138
|
+
-- Name: index_organizations_on_lower_login; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3139
|
+
--
|
3140
|
+
|
3141
|
+
CREATE INDEX index_organizations_on_lower_login ON organizations USING btree (lower((login)::text));
|
3142
|
+
|
3143
|
+
|
3144
|
+
--
|
3145
|
+
-- Name: index_owner_groups_on_owner_type_and_owner_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3146
|
+
--
|
3147
|
+
|
3148
|
+
CREATE INDEX index_owner_groups_on_owner_type_and_owner_id ON owner_groups USING btree (owner_type, owner_id);
|
3149
|
+
|
3150
|
+
|
3151
|
+
--
|
3152
|
+
-- Name: index_owner_groups_on_uuid; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3153
|
+
--
|
3154
|
+
|
3155
|
+
CREATE INDEX index_owner_groups_on_uuid ON owner_groups USING btree (uuid);
|
3156
|
+
|
3157
|
+
|
3158
|
+
--
|
3159
|
+
-- Name: index_permissions_on_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3160
|
+
--
|
3161
|
+
|
3162
|
+
CREATE INDEX index_permissions_on_repository_id ON permissions USING btree (repository_id);
|
3163
|
+
|
3164
|
+
|
3165
|
+
--
|
3166
|
+
-- Name: index_permissions_on_user_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3167
|
+
--
|
3168
|
+
|
3169
|
+
CREATE INDEX index_permissions_on_user_id ON permissions USING btree (user_id);
|
3170
|
+
|
3171
|
+
|
3172
|
+
--
|
3173
|
+
-- Name: index_permissions_on_user_id_and_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3174
|
+
--
|
3175
|
+
|
3176
|
+
CREATE UNIQUE INDEX index_permissions_on_user_id_and_repository_id ON permissions USING btree (user_id, repository_id);
|
3177
|
+
|
3178
|
+
|
3179
|
+
--
|
3180
|
+
-- Name: index_pull_requests_on_repository_id_and_number; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3181
|
+
--
|
3182
|
+
|
3183
|
+
CREATE UNIQUE INDEX index_pull_requests_on_repository_id_and_number ON pull_requests USING btree (repository_id, number);
|
3184
|
+
|
3185
|
+
|
3186
|
+
--
|
3187
|
+
-- Name: index_queueable_jobs_on_job_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3188
|
+
--
|
3189
|
+
|
3190
|
+
CREATE INDEX index_queueable_jobs_on_job_id ON queueable_jobs USING btree (job_id);
|
3191
|
+
|
3192
|
+
|
3193
|
+
--
|
3194
|
+
-- Name: index_repositories_on_active; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3195
|
+
--
|
3196
|
+
|
3197
|
+
CREATE INDEX index_repositories_on_active ON repositories USING btree (active);
|
3198
|
+
|
3199
|
+
|
3200
|
+
--
|
3201
|
+
-- Name: index_repositories_on_github_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3202
|
+
--
|
3203
|
+
|
3204
|
+
CREATE UNIQUE INDEX index_repositories_on_github_id ON repositories USING btree (github_id);
|
3205
|
+
|
3206
|
+
|
3207
|
+
--
|
3208
|
+
-- Name: index_repositories_on_lower_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3209
|
+
--
|
3210
|
+
|
3211
|
+
CREATE INDEX index_repositories_on_lower_name ON repositories USING btree (lower((name)::text));
|
3212
|
+
|
3213
|
+
|
3214
|
+
--
|
3215
|
+
-- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3216
|
+
--
|
3217
|
+
|
3218
|
+
CREATE INDEX index_repositories_on_name ON repositories USING btree (name);
|
3219
|
+
|
3220
|
+
|
3221
|
+
--
|
3222
|
+
-- Name: index_repositories_on_owner_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3223
|
+
--
|
3224
|
+
|
3225
|
+
CREATE INDEX index_repositories_on_owner_id ON repositories USING btree (owner_id);
|
3226
|
+
|
3227
|
+
|
3228
|
+
--
|
3229
|
+
-- Name: index_repositories_on_owner_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3230
|
+
--
|
3231
|
+
|
3232
|
+
CREATE INDEX index_repositories_on_owner_name ON repositories USING btree (owner_name);
|
3233
|
+
|
3234
|
+
|
3235
|
+
--
|
3236
|
+
-- Name: index_repositories_on_slug; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3237
|
+
--
|
3238
|
+
|
3239
|
+
CREATE INDEX index_repositories_on_slug ON repositories USING gin (((((owner_name)::text || '/'::text) || (name)::text)) gin_trgm_ops);
|
3240
|
+
|
3241
|
+
|
3242
|
+
--
|
3243
|
+
-- Name: index_requests_on_commit_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3244
|
+
--
|
3245
|
+
|
3246
|
+
CREATE INDEX index_requests_on_commit_id ON requests USING btree (commit_id);
|
3247
|
+
|
3248
|
+
|
3249
|
+
--
|
3250
|
+
-- Name: index_requests_on_created_at; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3251
|
+
--
|
3252
|
+
|
3253
|
+
CREATE INDEX index_requests_on_created_at ON requests USING btree (created_at);
|
3254
|
+
|
3255
|
+
|
3256
|
+
--
|
3257
|
+
-- Name: index_requests_on_head_commit; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3258
|
+
--
|
3259
|
+
|
3260
|
+
CREATE INDEX index_requests_on_head_commit ON requests USING btree (head_commit);
|
3261
|
+
|
3262
|
+
|
3263
|
+
--
|
3264
|
+
-- Name: index_requests_on_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3265
|
+
--
|
3266
|
+
|
3267
|
+
CREATE INDEX index_requests_on_repository_id ON requests USING btree (repository_id);
|
3268
|
+
|
3269
|
+
|
3270
|
+
--
|
3271
|
+
-- Name: index_requests_on_repository_id_and_id_desc; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3272
|
+
--
|
3273
|
+
|
3274
|
+
CREATE INDEX index_requests_on_repository_id_and_id_desc ON requests USING btree (repository_id, id DESC);
|
3275
|
+
|
3276
|
+
|
3277
|
+
--
|
3278
|
+
-- Name: index_ssl_key_on_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3279
|
+
--
|
3280
|
+
|
3281
|
+
CREATE INDEX index_ssl_key_on_repository_id ON ssl_keys USING btree (repository_id);
|
3282
|
+
|
3283
|
+
|
3284
|
+
--
|
3285
|
+
-- Name: index_stages_on_build_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3286
|
+
--
|
3287
|
+
|
3288
|
+
CREATE INDEX index_stages_on_build_id ON stages USING btree (build_id);
|
3289
|
+
|
3290
|
+
|
3291
|
+
--
|
3292
|
+
-- Name: index_stars_on_user_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3293
|
+
--
|
3294
|
+
|
3295
|
+
CREATE INDEX index_stars_on_user_id ON stars USING btree (user_id);
|
3296
|
+
|
3297
|
+
|
3298
|
+
--
|
3299
|
+
-- Name: index_stars_on_user_id_and_repository_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3300
|
+
--
|
3301
|
+
|
3302
|
+
CREATE UNIQUE INDEX index_stars_on_user_id_and_repository_id ON stars USING btree (user_id, repository_id);
|
3303
|
+
|
3304
|
+
|
3305
|
+
--
|
3306
|
+
-- Name: index_stripe_events_on_date; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3307
|
+
--
|
3308
|
+
|
3309
|
+
CREATE INDEX index_stripe_events_on_date ON stripe_events USING btree (date);
|
3310
|
+
|
3311
|
+
|
3312
|
+
--
|
3313
|
+
-- Name: index_stripe_events_on_event_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3314
|
+
--
|
3315
|
+
|
3316
|
+
CREATE INDEX index_stripe_events_on_event_id ON stripe_events USING btree (event_id);
|
3317
|
+
|
3318
|
+
|
3319
|
+
--
|
3320
|
+
-- Name: index_stripe_events_on_event_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3321
|
+
--
|
3322
|
+
|
3323
|
+
CREATE INDEX index_stripe_events_on_event_type ON stripe_events USING btree (event_type);
|
3324
|
+
|
3325
|
+
|
3326
|
+
--
|
3327
|
+
-- Name: index_tags_on_repository_id_and_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3328
|
+
--
|
3329
|
+
|
3330
|
+
CREATE UNIQUE INDEX index_tags_on_repository_id_and_name ON tags USING btree (repository_id, name);
|
3331
|
+
|
3332
|
+
|
3333
|
+
--
|
3334
|
+
-- Name: index_tokens_on_token; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3335
|
+
--
|
3336
|
+
|
3337
|
+
CREATE INDEX index_tokens_on_token ON tokens USING btree (token);
|
3338
|
+
|
3339
|
+
|
3340
|
+
--
|
3341
|
+
-- Name: index_tokens_on_user_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3342
|
+
--
|
3343
|
+
|
3344
|
+
CREATE INDEX index_tokens_on_user_id ON tokens USING btree (user_id);
|
3345
|
+
|
3346
|
+
|
3347
|
+
--
|
3348
|
+
-- Name: index_trial_allowances_on_creator_id_and_creator_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3349
|
+
--
|
3350
|
+
|
3351
|
+
CREATE INDEX index_trial_allowances_on_creator_id_and_creator_type ON trial_allowances USING btree (creator_id, creator_type);
|
3352
|
+
|
3353
|
+
|
3354
|
+
--
|
3355
|
+
-- Name: index_trial_allowances_on_trial_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3356
|
+
--
|
3357
|
+
|
3358
|
+
CREATE INDEX index_trial_allowances_on_trial_id ON trial_allowances USING btree (trial_id);
|
3359
|
+
|
3360
|
+
|
3361
|
+
--
|
3362
|
+
-- Name: index_trials_on_owner; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3363
|
+
--
|
3364
|
+
|
3365
|
+
CREATE INDEX index_trials_on_owner ON trials USING btree (owner_id, owner_type);
|
3366
|
+
|
3367
|
+
|
3368
|
+
--
|
3369
|
+
-- Name: index_user_beta_features_on_user_id_and_beta_feature_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3370
|
+
--
|
3371
|
+
|
3372
|
+
CREATE INDEX index_user_beta_features_on_user_id_and_beta_feature_id ON user_beta_features USING btree (user_id, beta_feature_id);
|
3373
|
+
|
3374
|
+
|
3375
|
+
--
|
3376
|
+
-- Name: index_users_on_github_id; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3377
|
+
--
|
3378
|
+
|
3379
|
+
CREATE UNIQUE INDEX index_users_on_github_id ON users USING btree (github_id);
|
3380
|
+
|
3381
|
+
|
3382
|
+
--
|
3383
|
+
-- Name: index_users_on_github_oauth_token; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3384
|
+
--
|
3385
|
+
|
3386
|
+
CREATE UNIQUE INDEX index_users_on_github_oauth_token ON users USING btree (github_oauth_token);
|
3387
|
+
|
3388
|
+
|
3389
|
+
--
|
3390
|
+
-- Name: index_users_on_login; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3391
|
+
--
|
3392
|
+
|
3393
|
+
CREATE INDEX index_users_on_login ON users USING btree (login);
|
3394
|
+
|
3395
|
+
|
3396
|
+
--
|
3397
|
+
-- Name: index_users_on_lower_login; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3398
|
+
--
|
3399
|
+
|
3400
|
+
CREATE INDEX index_users_on_lower_login ON users USING btree (lower((login)::text));
|
3401
|
+
|
3402
|
+
|
3403
|
+
--
|
3404
|
+
-- Name: subscriptions_owner; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3405
|
+
--
|
3406
|
+
|
3407
|
+
CREATE UNIQUE INDEX subscriptions_owner ON subscriptions USING btree (owner_id, owner_type) WHERE ((status)::text = 'subscribed'::text);
|
3408
|
+
|
3409
|
+
|
3410
|
+
--
|
3411
|
+
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
3412
|
+
--
|
3413
|
+
|
3414
|
+
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
|
3415
|
+
|
3416
|
+
|
3417
|
+
--
|
3418
|
+
-- Name: set_updated_at_on_builds; Type: TRIGGER; Schema: public; Owner: postgres
|
3419
|
+
--
|
3420
|
+
|
3421
|
+
CREATE TRIGGER set_updated_at_on_builds BEFORE INSERT OR UPDATE ON builds FOR EACH ROW EXECUTE PROCEDURE set_updated_at();
|
3422
|
+
|
3423
|
+
|
3424
|
+
--
|
3425
|
+
-- Name: set_updated_at_on_jobs; Type: TRIGGER; Schema: public; Owner: postgres
|
3426
|
+
--
|
3427
|
+
|
3428
|
+
CREATE TRIGGER set_updated_at_on_jobs BEFORE INSERT OR UPDATE ON jobs FOR EACH ROW EXECUTE PROCEDURE set_updated_at();
|
3429
|
+
|
3430
|
+
|
3431
|
+
--
|
3432
|
+
-- Name: fk_repositories_current_build_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
3433
|
+
--
|
3434
|
+
|
3435
|
+
ALTER TABLE ONLY repositories
|
3436
|
+
ADD CONSTRAINT fk_repositories_current_build_id FOREIGN KEY (current_build_id) REFERENCES builds(id);
|
3437
|
+
|
3438
|
+
|
3439
|
+
SET search_path = sqitch, pg_catalog;
|
3440
|
+
|
3441
|
+
--
|
3442
|
+
-- Name: changes_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3443
|
+
--
|
3444
|
+
|
3445
|
+
ALTER TABLE ONLY changes
|
3446
|
+
ADD CONSTRAINT changes_project_fkey FOREIGN KEY (project) REFERENCES projects(project) ON UPDATE CASCADE;
|
3447
|
+
|
3448
|
+
|
3449
|
+
--
|
3450
|
+
-- Name: dependencies_change_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3451
|
+
--
|
3452
|
+
|
3453
|
+
ALTER TABLE ONLY dependencies
|
3454
|
+
ADD CONSTRAINT dependencies_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(change_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
3455
|
+
|
3456
|
+
|
3457
|
+
--
|
3458
|
+
-- Name: dependencies_dependency_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3459
|
+
--
|
3460
|
+
|
3461
|
+
ALTER TABLE ONLY dependencies
|
3462
|
+
ADD CONSTRAINT dependencies_dependency_id_fkey FOREIGN KEY (dependency_id) REFERENCES changes(change_id) ON UPDATE CASCADE;
|
3463
|
+
|
3464
|
+
|
3465
|
+
--
|
3466
|
+
-- Name: events_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3467
|
+
--
|
3468
|
+
|
3469
|
+
ALTER TABLE ONLY events
|
3470
|
+
ADD CONSTRAINT events_project_fkey FOREIGN KEY (project) REFERENCES projects(project) ON UPDATE CASCADE;
|
3471
|
+
|
3472
|
+
|
3473
|
+
--
|
3474
|
+
-- Name: tags_change_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3475
|
+
--
|
3476
|
+
|
3477
|
+
ALTER TABLE ONLY tags
|
3478
|
+
ADD CONSTRAINT tags_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(change_id) ON UPDATE CASCADE;
|
3479
|
+
|
3480
|
+
|
3481
|
+
--
|
3482
|
+
-- Name: tags_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: postgres
|
3483
|
+
--
|
3484
|
+
|
3485
|
+
ALTER TABLE ONLY tags
|
3486
|
+
ADD CONSTRAINT tags_project_fkey FOREIGN KEY (project) REFERENCES projects(project) ON UPDATE CASCADE;
|
3487
|
+
|
3488
|
+
|
3489
|
+
--
|
3490
|
+
-- Name: public; Type: ACL; Schema: -; Owner: postgres
|
3491
|
+
--
|
3492
|
+
|
3493
|
+
REVOKE ALL ON SCHEMA public FROM PUBLIC;
|
3494
|
+
REVOKE ALL ON SCHEMA public FROM postgres;
|
3495
|
+
GRANT ALL ON SCHEMA public TO postgres;
|
3496
|
+
GRANT ALL ON SCHEMA public TO PUBLIC;
|
3497
|
+
|
3498
|
+
|
3499
|
+
--
|
3500
|
+
-- PostgreSQL database dump complete
|
3501
|
+
--
|
3502
|
+
|