OpenMetadata/bootstrap/sql/migrations/native/1.8.7/postgres/postDataMigrationSQLScript.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
2.4 KiB
MySQL
Raw Normal View History

Fix #22403: Smart Reindex (#22404) * Fix #22403: Smart Reindex * Update generated TypeScript types * Docs: Artifacts Removal (#22442) Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> * Docs: Meta Tags Updation (#22444) Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> * Fixes #22363 #22369: Stored procedure temp table processing and lineage filtering with db & schema (#22416) * Process temp table graph in stored procedure processor and add db/schema filtering on lineage * Add tests for stored procedure lineage processing * Fix tests and py_format * Fix the filters and log stored proc query count info * Playwright Update: Bulk Import (#22436) Co-authored-by: Satish <satish@Satishs-MacBook-Pro.local> Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com> * Docs: Databrick Features Updation (#22448) Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> * Docs: Meta Updation (#22451) Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> Co-authored-by: Prajwal214 <167504578+Prajwal214@users.noreply.github.com> * Docs: 18.4 to 1.8.6 Release Updation (#22455) Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> * fix the flaky glossary bulk edit failure (#22446) * Move schema changes to 1.8.7 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com> Co-authored-by: Rounak Dhillon <162090200+RounakDhillon@users.noreply.github.com> Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> Co-authored-by: Mohit Tilala <63147650+mohittilala@users.noreply.github.com> Co-authored-by: satish <satishmwaghela@gmail.com> Co-authored-by: Satish <satish@Satishs-MacBook-Pro.local> Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com> Co-authored-by: Prajwal214 <167504578+Prajwal214@users.noreply.github.com> Co-authored-by: Ashish Gupta <ashish@getcollate.io>
2025-07-18 21:53:43 -07:00
-- Pre-populate index mapping versions with 1.8.4 hashes to enable smart reindexing from the first upgrade
-- These hashes were computed from the 1.8.4 release branch
-- This ensures that the first upgrade using this feature will correctly detect changes
INSERT INTO index_mapping_versions (entityType, mappingHash, mappingJson, version, updatedAt, updatedBy) VALUES
('chart', '357fb478cedc60e4f2da327dcf14a213', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('classification', '1539e614d4a3d4356d5ec6662bb0e858', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('container', '7be28db3999be6f5f5c8f7917f87b83f', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('dashboard', '5f04f873711d82318a5baebe1ee05e56', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('database', '43621bd44ca7e8a95810c720e2fec206', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('domain', 'd6750e57c35c25675bf5292e51e89ecd', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('glossary', '569a3b864e6fde696f5760d735cdc23b', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('metric', '2fc0919738bc14e2d2c7309905a72fe6', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('mlmodel', 'aa736fc6eda09aa72ebdc93e6a4bdf98', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('pipeline', '4b762d5c04df867b91009a6d1413cabd', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('query', 'bd38e95a8ae7960ef4c39ab4d119b9cb', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('table', '5c3221ea938bae7a36118b31d786b4cb', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('tag', '777216174abe8111b7c6867a05e28a86', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('team', '8280850b87d66247058d4e60fd11c2ea', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('topic', 'f53864ed2469e281d5d942418e823020', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system'),
('user', 'f73729fc827c0bed5e287e1b390e6c32', '{}'::jsonb, '1.8.4', EXTRACT(EPOCH FROM NOW()) * 1000, 'system')
ON CONFLICT (entityType) DO UPDATE SET
mappingHash = EXCLUDED.mappingHash,
mappingJson = EXCLUDED.mappingJson,
version = EXCLUDED.version,
updatedAt = EXCLUDED.updatedAt,
updatedBy = EXCLUDED.updatedBy;