panda_pal 5.4.10 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,12 +10,20 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20171205194657) do
13
+ ActiveRecord::Schema.define(version: 2022_07_21_095653) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
17
17
 
18
- create_table "panda_pal_organizations", force: :cascade do |t|
18
+ create_table "panda_pal_api_calls", id: :serial, force: :cascade do |t|
19
+ t.text "logic"
20
+ t.string "expiration"
21
+ t.integer "uses_remaining"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
+ end
25
+
26
+ create_table "panda_pal_organizations", id: :serial, force: :cascade do |t|
19
27
  t.string "name"
20
28
  t.string "key"
21
29
  t.string "secret"
@@ -29,7 +37,7 @@ ActiveRecord::Schema.define(version: 20171205194657) do
29
37
  t.index ["name"], name: "index_panda_pal_organizations_on_name", unique: true
30
38
  end
31
39
 
32
- create_table "panda_pal_sessions", force: :cascade do |t|
40
+ create_table "panda_pal_sessions", id: :serial, force: :cascade do |t|
33
41
  t.string "session_key"
34
42
  t.text "data"
35
43
  t.datetime "created_at", null: false
@@ -0,0 +1,162 @@
1
+  (3.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
3
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
5
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7
+  (1.4ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
8
+  (29.2ms) DROP DATABASE IF EXISTS "panda_pal_development"
9
+  (28.0ms) DROP DATABASE IF EXISTS "panda_pal_test"
10
+  (124.7ms) CREATE DATABASE "panda_pal_development" ENCODING = 'utf8'
11
+  (84.3ms) CREATE DATABASE "panda_pal_test" ENCODING = 'utf8'
12
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
13
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
14
+  (15.0ms) CREATE TABLE "panda_pal_organizations" ("id" bigserial primary key, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
15
+  (5.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
16
+  (5.0ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
17
+  (1.0ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
18
+  (9.0ms) CREATE TABLE "panda_pal_sessions" ("id" bigserial primary key, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
19
+  (4.8ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
20
+  (4.2ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
21
+  (8.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
22
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
23
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (20171205194657)
24
+  (9.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
25
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
26
+  (0.1ms) BEGIN
27
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2022-07-21 15:53:16.068888"], ["updated_at", "2022-07-21 15:53:16.068888"]]
28
+  (1.1ms) COMMIT
29
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
30
+  (0.2ms) BEGIN
31
+  (0.2ms) COMMIT
32
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
33
+  (0.4ms) DROP TABLE IF EXISTS "panda_pal_organizations" CASCADE
34
+  (11.1ms) CREATE TABLE "panda_pal_organizations" ("id" bigserial primary key, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "salesforce_id" character varying, "encrypted_settings" text, "encrypted_settings_iv" character varying)
35
+  (4.6ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
36
+  (5.1ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
37
+  (0.2ms) DROP TABLE IF EXISTS "panda_pal_sessions" CASCADE
38
+  (9.6ms) CREATE TABLE "panda_pal_sessions" ("id" bigserial primary key, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "panda_pal_organization_id" integer)
39
+  (5.0ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
40
+  (5.0ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
41
+  (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
42
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
43
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20171205194657)
44
+  (8.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
45
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
46
+  (0.1ms) BEGIN
47
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2022-07-21 15:53:16.159537"], ["updated_at", "2022-07-21 15:53:16.159537"]]
48
+  (1.0ms) COMMIT
49
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
50
+  (0.1ms) BEGIN
51
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2022-07-21 15:53:16.162899"], ["key", "environment"]]
52
+  (1.1ms) COMMIT
53
+  (0.1ms) SELECT pg_try_advisory_lock(7878782013693407355)
54
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
55
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
56
+  (0.2ms) BEGIN
57
+  (0.1ms) COMMIT
58
+  (0.2ms) SELECT pg_advisory_unlock(7878782013693407355)
59
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
60
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
61
+  (0.2ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
62
+  (0.1ms) SELECT pg_try_advisory_lock(7878782013693407355)
63
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
64
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
65
+  (0.1ms) BEGIN
66
+  (0.1ms) COMMIT
67
+  (0.2ms) SELECT pg_advisory_unlock(7878782013693407355)
68
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
69
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
70
+  (0.2ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
71
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
72
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
73
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
74
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
75
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
76
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
77
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
78
+  (70.1ms) DROP DATABASE IF EXISTS "panda_pal_development"
79
+  (34.0ms) DROP DATABASE IF EXISTS "panda_pal_test"
80
+  (76.8ms) CREATE DATABASE "panda_pal_development" ENCODING = 'utf8'
81
+  (74.8ms) CREATE DATABASE "panda_pal_test" ENCODING = 'utf8'
82
+  (10.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
83
+  (9.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
84
+  (0.1ms) SELECT pg_try_advisory_lock(7878782013693407355)
85
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
86
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
87
+  (0.1ms) BEGIN
88
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2022-07-21 16:11:17.765993"], ["updated_at", "2022-07-21 16:11:17.765993"]]
89
+  (1.3ms) COMMIT
90
+  (0.4ms) SELECT pg_advisory_unlock(7878782013693407355)
91
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
92
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
93
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
94
+  (31.2ms) DROP DATABASE IF EXISTS "panda_pal_development"
95
+  (27.1ms) DROP DATABASE IF EXISTS "panda_pal_test"
96
+  (81.3ms) CREATE DATABASE "panda_pal_development" ENCODING = 'utf8'
97
+  (81.1ms) CREATE DATABASE "panda_pal_test" ENCODING = 'utf8'
98
+  (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
99
+  (8.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
100
+  (0.1ms) SELECT pg_try_advisory_lock(7878782013693407355)
101
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
102
+ Migrating to CreatePandaPalOrganizations (20160412205931)
103
+  (0.0ms) BEGIN
104
+  (8.6ms) CREATE TABLE "panda_pal_organizations" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "key" character varying, "secret" character varying, "canvas_account_id" character varying, "settings" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
105
+  (3.8ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_name" ON "panda_pal_organizations" ("name")
106
+  (3.4ms) CREATE UNIQUE INDEX "index_panda_pal_organizations_on_key" ON "panda_pal_organizations" ("key")
107
+ ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160412205931"]]
108
+  (1.3ms) COMMIT
109
+ Migrating to CreatePandaPalSessions (20160413135653)
110
+  (0.2ms) BEGIN
111
+  (7.4ms) CREATE TABLE "panda_pal_sessions" ("id" serial NOT NULL PRIMARY KEY, "session_key" character varying, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
112
+  (3.7ms) CREATE UNIQUE INDEX "index_panda_pal_sessions_on_session_key" ON "panda_pal_sessions" ("session_key")
113
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160413135653"]]
114
+  (1.2ms) COMMIT
115
+ Migrating to AddPandaPalOrganizationToSession (20160425130344)
116
+  (0.1ms) BEGIN
117
+  (0.2ms) ALTER TABLE "panda_pal_sessions" ADD "panda_pal_organization_id" integer
118
+  (3.5ms) CREATE INDEX "index_panda_pal_sessions_on_panda_pal_organization_id" ON "panda_pal_sessions" ("panda_pal_organization_id")
119
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160425130344"]]
120
+  (1.3ms) COMMIT
121
+ Migrating to AddSalesforceIdToOrganizations (20170106165533)
122
+  (0.1ms) BEGIN
123
+  (0.2ms) ALTER TABLE "panda_pal_organizations" ADD "salesforce_id" character varying
124
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170106165533"]]
125
+  (1.0ms) COMMIT
126
+ Migrating to EncryptOrganizationSettings (20171205183457)
127
+  (0.1ms) BEGIN
128
+  (0.2ms) SELECT * from schema_migrations where version = '30171205183457'
129
+  (0.2ms) ALTER TABLE "panda_pal_organizations" RENAME COLUMN "settings" TO "old_settings"
130
+  (0.2ms) ALTER TABLE "panda_pal_organizations" ADD "encrypted_settings" text
131
+  (0.2ms) ALTER TABLE "panda_pal_organizations" ADD "encrypted_settings_iv" character varying
132
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20171205183457"]]
133
+  (1.0ms) COMMIT
134
+ Migrating to RemoveOldOrganizationSettings (20171205194657)
135
+  (0.1ms) BEGIN
136
+  (0.2ms) SELECT * from schema_migrations where version = '30171205194657'
137
+ PandaPal::Organization Load (0.3ms) SELECT "public"."panda_pal_organizations".* FROM "public"."panda_pal_organizations" ORDER BY "public"."panda_pal_organizations"."id" ASC LIMIT $1 [["LIMIT", 1000]]
138
+  (0.5ms) ALTER TABLE "panda_pal_organizations" DROP COLUMN "old_settings"
139
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20171205194657"]]
140
+  (1.1ms) COMMIT
141
+ Migrating to CreatePandaPalApiCalls (20220721095653)
142
+  (0.2ms) BEGIN
143
+  (8.2ms) CREATE TABLE "panda_pal_api_calls" ("id" serial NOT NULL PRIMARY KEY, "logic" text, "expiration" character varying, "rate_limit" character varying, "uses_remaining" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
144
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20220721095653"]]
145
+  (1.1ms) COMMIT
146
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
147
+  (0.1ms) BEGIN
148
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2022-07-21 16:14:19.544810"], ["updated_at", "2022-07-21 16:14:19.544810"]]
149
+  (1.3ms) COMMIT
150
+  (0.3ms) SELECT pg_advisory_unlock(7878782013693407355)
151
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
152
+  (0.4ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
153
+  (0.2ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
154
+  (0.2ms) SELECT pg_try_advisory_lock(7878782013693407355)
155
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
156
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
157
+  (0.1ms) BEGIN
158
+  (0.1ms) COMMIT
159
+  (0.2ms) SELECT pg_advisory_unlock(7878782013693407355)
160
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
161
+  (0.3ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"
162
+  (0.2ms) SELECT "public"."panda_pal_organizations"."name" FROM "public"."panda_pal_organizations"