diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-10-09 21:08:26 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-10-09 21:08:26 +0200 |
commit | a02244f17c841f641c9ed289fb592b73fecf472d (patch) | |
tree | 39a682cbdd9307bd437f6cbf4eda3430cac87bc6 /db | |
parent | 269edc0e48886ea90455283f08a646c86387cfbc (diff) | |
parent | 46e4a759bbe0e78fdbb4c1573a404bd4b531315a (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: app/javascript/packs/public.js Changes made to app/javascript/packs/publics.js were applied to app/javascript/core/settings.js
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20181007025445_create_pghero_space_stats.rb | 13 | ||||
-rw-r--r-- | db/schema.rb | 11 |
2 files changed, 23 insertions, 1 deletions
diff --git a/db/migrate/20181007025445_create_pghero_space_stats.rb b/db/migrate/20181007025445_create_pghero_space_stats.rb new file mode 100644 index 000000000..6198a6f84 --- /dev/null +++ b/db/migrate/20181007025445_create_pghero_space_stats.rb @@ -0,0 +1,13 @@ +class CreatePgheroSpaceStats < ActiveRecord::Migration[5.2] + def change + create_table :pghero_space_stats do |t| + t.text :database + t.text :schema + t.text :relation + t.integer :size, limit: 8 + t.timestamp :captured_at + end + + add_index :pghero_space_stats, [:database, :captured_at] + end +end diff --git a/db/schema.rb b/db/schema.rb index 8ab3ea3c0..f9019e8cf 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2018_09_29_222014) do +ActiveRecord::Schema.define(version: 2018_10_07_025445) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -382,6 +382,15 @@ ActiveRecord::Schema.define(version: 2018_09_29_222014) do t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true end + create_table "pghero_space_stats", force: :cascade do |t| + t.text "database" + t.text "schema" + t.text "relation" + t.bigint "size" + t.datetime "captured_at" + t.index ["database", "captured_at"], name: "index_pghero_space_stats_on_database_and_captured_at" + end + create_table "preview_cards", force: :cascade do |t| t.string "url", default: "", null: false t.string "title", default: "", null: false |