Browse Source

add change postgres indexes.

master
Gisle Aune 4 years ago
parent
commit
9aa7304982
  1. 9
      database/postgres/migrations/20210322224711_create_index_change_keys.sql
  2. 9
      database/postgres/migrations/20210322224738_create_index_change_date.sql
  3. 9
      database/postgres/migrations/20210322224748_create_index_change_author.sql

9
database/postgres/migrations/20210322224711_create_index_change_keys.sql

@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX data_change_index_keys on data_change USING GIN (keys);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS data_change_index_keys;
-- +goose StatementEnd

9
database/postgres/migrations/20210322224738_create_index_change_date.sql

@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX data_change_index_date ON data_change (date);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS data_change_index_date;
-- +goose StatementEnd

9
database/postgres/migrations/20210322224748_create_index_change_author.sql

@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX data_change_index_author ON data_change (author);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX IF EXISTS data_change_index_author;
-- +goose StatementEnd
Loading…
Cancel
Save