pkgsite/migrations
Jonathan Amsterdam 172521265a migrations: add series_path and deprecated columns to latest_module_versions
We'll use these columns to find the latest non-deprecated major module
version for a path.

For golang/go#43265

Change-Id: I3890fc78879ab8750e28cb9c42392eac5b1cb454
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/307472
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
2021-04-06 16:49:32 +00:00
..
000001_initial_schema_from_pg_dump.down.sql migrations: flatten schema 2020-04-06 17:09:52 -04:00
000001_initial_schema_from_pg_dump.up.sql migrations: remove USING btree in 000001 2020-04-16 17:40:44 +00:00
000002_add_modules_identity.down.sql migrations: add identity column to modules. 2020-04-06 17:09:52 -04:00
000002_add_modules_identity.up.sql migrations: add identity column to modules. 2020-04-06 17:09:52 -04:00
000003_add_paths_table.down.sql migrations: add paths table 2020-04-06 17:09:52 -04:00
000003_add_paths_table.up.sql migrations: add paths table 2020-04-06 17:09:52 -04:00
000004_redo_golang_search_config.down.sql migrations: redo search config 2020-04-06 17:09:52 -04:00
000004_redo_golang_search_config.up.sql migrations: redo search config 2020-04-06 17:09:52 -04:00
000005_change_b_weight.down.sql migrations: set B weight to 1 2020-04-06 17:09:52 -04:00
000005_change_b_weight.up.sql migrations: set B weight to 1 2020-04-06 17:09:52 -04:00
000006_add_identity_keys.down.sql migrations: add module_id columns 2020-04-07 02:06:19 +00:00
000006_add_identity_keys.up.sql migrations: add module_id columns 2020-04-07 02:06:19 +00:00
000007_add_readme_package_imports_documentation_tables.down.sql migrations: add readme, documentation and package_imports tables 2020-04-07 02:06:45 +00:00
000007_add_readme_package_imports_documentation_tables.up.sql migrations: fix missing comma in 000007 2020-04-07 15:37:39 +00:00
000008_remove_golang_text_config.down.sql migrations: remove golang text configuration 2020-04-08 19:19:14 +00:00
000008_remove_golang_text_config.up.sql migrations: remove golang text configuration 2020-04-08 19:19:14 +00:00
000009_add_path_tokens_config.down.sql migrations: add a text config for path tokens 2020-04-08 19:19:42 +00:00
000009_add_path_tokens_config.up.sql migrations: add a text config for path tokens 2020-04-08 19:19:42 +00:00
000010_rename_readme_filename_to_file_path.down.sql migrations: fix typo in 000010 down.sql 2020-04-16 17:35:34 +00:00
000010_rename_readme_filename_to_file_path.up.sql migrations: rename readme.filename to readme.file_path 2020-04-10 13:16:05 +00:00
000011_add_packages_index.down.sql migrations: add index for packages(module_path, version) 2020-04-16 17:34:01 +00:00
000011_add_packages_index.up.sql migrations: add index for packages(module_path, version) 2020-04-16 17:34:01 +00:00
000012_add_modules_series_path_index.down.sql migrations: add idx_modules_series_path 2020-04-16 17:46:57 +00:00
000012_add_modules_series_path_index.up.sql migrations: add idx_modules_series_path 2020-04-16 17:46:57 +00:00
000013_add_version_map_indexes.down.sql migrations: add indexes to version_map 2020-04-16 18:03:53 +00:00
000013_add_version_map_indexes.up.sql migrations: add indexes to version_map 2020-04-16 18:03:53 +00:00
000014_add_paths_module_id_index.down.sql migrations: add index to paths.module_id 2020-04-16 18:22:42 +00:00
000014_add_paths_module_id_index.up.sql migrations: add index to paths.module_id 2020-04-16 18:22:42 +00:00
000015_add_package_version_states_module_path_version_index.down.sql migrations: add index on package_version_states(module_path, version) 2020-04-22 15:23:39 +00:00
000015_add_package_version_states_module_path_version_index.up.sql migrations: add index on package_version_states(module_path, version) 2020-04-22 15:23:39 +00:00
000016_add_module_version_states_num_packages.down.sql migrations: add num_packages column to module_version_states 2020-04-23 02:22:17 +00:00
000016_add_module_version_states_num_packages.up.sql migrations: add num_packages column to module_version_states 2020-04-23 02:22:17 +00:00
000017_add_module_version_states_num_packages_index.down.sql migrations: add module_version_states.num_packages index 2020-04-23 14:06:34 +00:00
000017_add_module_version_states_num_packages_index.up.sql migrations: add module_version_states.num_packages index 2020-04-23 14:06:34 +00:00
000018_add_module_version_states_status_index.down.sql migrations: add module_version_states.status index 2020-04-29 02:37:05 +00:00
000018_add_module_version_states_status_index.up.sql migrations: add module_version_states.status index 2020-04-29 02:37:05 +00:00
000019_add_imports_unique_index.down.sql migrations: add an index to imports_unique 2020-04-29 16:17:12 +00:00
000019_add_imports_unique_index.up.sql migrations: add an index to imports_unique 2020-04-29 16:17:12 +00:00
000020_add_search_documents_module_path_index.down.sql migrations: add search_documents.module_path index 2020-05-01 03:42:58 +00:00
000020_add_search_documents_module_path_index.up.sql migrations: add search_documents.module_path index 2020-05-01 03:42:58 +00:00
000021_add_version_map_go_mod_path_column.down.sql migrations: add version_map.go_mod_path column 2020-05-21 16:09:37 +00:00
000021_add_version_map_go_mod_path_column.up.sql migrations: add version_map.go_mod_path column 2020-05-21 16:09:37 +00:00
000022_change_has_go_mod_not_null.down.sql migrations: make has_go_mod NOT NULL 2020-07-06 14:11:02 +00:00
000022_change_has_go_mod_not_null.up.sql migrations: make has_go_mod NOT NULL 2020-07-06 14:11:02 +00:00
000023_change_version_map_go_mod_path_not_null.down.sql migrations: set not-null constraint on version_map.go_mod_path 2020-07-20 18:40:31 +00:00
000023_change_version_map_go_mod_path_not_null.up.sql migrations: drop default in 000023 2020-07-20 18:57:03 +00:00
000024_add_documentation_source_files_column.down.sql migrations: add migrations for storing source files 2020-07-29 16:22:11 +00:00
000024_add_documentation_source_files_column.up.sql migrations: add migrations for storing source files 2020-07-29 16:22:11 +00:00
000025_add_module_incomapatible_column.down.sql migrations: add migrations for module compatibility sorting 2020-08-10 15:13:50 +00:00
000025_add_module_incomapatible_column.up.sql migrations: add migrations for module compatibility sorting 2020-08-10 15:13:50 +00:00
000026_change_incompatible_not_null.down.sql migrations: make incompatible NOT NULL 2020-08-18 21:03:38 +00:00
000026_change_incompatible_not_null.up.sql migrations: make incompatible NOT NULL 2020-08-18 21:03:38 +00:00
000027_add_modules_status_column.down.sql migrations: add status column to modules 2020-08-20 02:36:28 +00:00
000027_add_modules_status_column.up.sql migrations: add status column to modules 2020-08-20 02:36:28 +00:00
000028_add_idx_licenses_module_id.down.sql migrations: add index on licenses.module_id 2020-08-20 13:26:19 +00:00
000028_add_idx_licenses_module_id.up.sql migrations: add index on licenses.module_id 2020-08-20 13:26:19 +00:00
000029_change_licenses_module_id_not_null.down.sql migrations: make licenses.module_id NOT NULL 2020-09-14 19:46:26 +00:00
000029_change_licenses_module_id_not_null.up.sql migrations: make licenses.module_id NOT NULL 2020-09-14 19:46:26 +00:00
000030_remove_experiments.down.sql migrations: remove experiments table 2020-10-14 14:16:19 +00:00
000030_remove_experiments.up.sql migrations: remove experiments table 2020-10-14 14:16:19 +00:00
000031_drop_tsv_parent_directories.down.sql migrations: drop tsv_parent_directories 2020-10-16 20:04:15 +00:00
000031_drop_tsv_parent_directories.up.sql migrations: drop tsv_parent_directories 2020-10-16 20:04:15 +00:00
000032_drop_search_documents_package_path_fkey.down.sql migrations: drop search_documents_package_path_fkey 2020-10-16 20:03:42 +00:00
000032_drop_search_documents_package_path_fkey.up.sql x/pkgsite: fix migration 000032 and add migration 000033 2020-10-19 20:53:28 +00:00
000033_drop_search_documents_package_path_module_path_version_fkey.down.sql x/pkgsite: fix migration 000032 and add migration 000033 2020-10-19 20:53:28 +00:00
000033_drop_search_documents_package_path_module_path_version_fkey.up.sql x/pkgsite: fix migration 000032 and add migration 000033 2020-10-19 20:53:28 +00:00
000034_drop_licenses_module_path_fkey.down.sql migrations: drop FK licenses_module_path_fkey 2020-10-27 15:02:18 +00:00
000034_drop_licenses_module_path_fkey.up.sql migrations: drop FK licenses_module_path_fkey 2020-10-27 15:02:18 +00:00
000035_add_unique_idx_licenses_module_id_file_path.down.sql migrations: add licenses_module_id_file_path 2020-10-27 15:02:44 +00:00
000035_add_unique_idx_licenses_module_id_file_path.up.sql migrations: add licenses_module_id_file_path 2020-10-27 15:02:44 +00:00
000036_change_licenses_primary_key.down.sql migrations: change licenses PK to (module_id, file_path) 2020-10-27 15:02:57 +00:00
000036_change_licenses_primary_key.up.sql migrations: change licenses PK to (module_id, file_path) 2020-10-27 15:02:57 +00:00
000037_drop_modules_readme_columns.down.sql migrations: drop modules.readme_* columns 2020-10-27 15:03:01 +00:00
000037_drop_modules_readme_columns.up.sql migrations: drop modules.readme_* columns 2020-10-27 15:03:01 +00:00
000038_drop_imports_table.down.sql migrations: drop imports table 2020-10-27 15:03:17 +00:00
000038_drop_imports_table.up.sql migrations: drop imports table 2020-10-27 15:03:17 +00:00
000039_drop_packages_table.down.sql migrations: drop packages table 2020-10-27 15:03:20 +00:00
000039_drop_packages_table.up.sql migrations: drop packages table 2020-10-27 15:03:20 +00:00
000040_drop_alternative_module_paths.down.sql migrations: drop alternative_module_paths 2020-10-27 15:03:24 +00:00
000040_drop_alternative_module_paths.up.sql migrations: drop alternative_module_paths 2020-10-27 15:03:24 +00:00
000041_drop_idx_paths_path.down.sql migrations: drop idx_paths_path 2020-10-27 15:03:28 +00:00
000041_drop_idx_paths_path.up.sql migrations: drop idx_paths_path 2020-10-27 15:03:28 +00:00
000042_add_search_documents_path_id.down.sql migrations: add search_documents.path_id column 2020-10-27 15:03:31 +00:00
000042_add_search_documents_path_id.up.sql migrations: add search_documents.path_id column 2020-10-27 15:03:31 +00:00
000043_add_units_view.down.sql migrations: add units view 2020-10-30 15:56:15 +00:00
000043_add_units_view.up.sql migrations: add units view 2020-10-30 15:56:15 +00:00
000044_rename_paths_to_units.down.sql migration: rename paths table to units 2020-11-02 19:00:39 +00:00
000044_rename_paths_to_units.up.sql migration: rename paths table to units 2020-11-02 19:00:39 +00:00
000045_create_paths_table.down.sql migrations: add paths table and units.path_id 2020-11-03 19:01:03 +00:00
000045_create_paths_table.up.sql migrations: add paths table and units.path_id 2020-11-03 19:01:03 +00:00
000046_rename_path_id_columns.down.sql migrations,internal/postgres: rename path_id columns to unit_id 2020-11-03 20:44:47 +00:00
000046_rename_path_id_columns.up.sql migrations,internal/postgres: rename path_id columns to unit_id 2020-11-03 20:44:47 +00:00
000047_add_unique_on_paths_path.down.sql migrations: add indexes to paths table 2020-11-03 22:10:44 +00:00
000047_add_unique_on_paths_path.up.sql migrations: add indexes to paths table 2020-11-03 22:10:44 +00:00
000048_add_idx_units_path_id.down.sql migrations: add index on units.path_id 2020-11-05 15:05:36 +00:00
000048_add_idx_units_path_id.up.sql migrations: add index on units.path_id 2020-11-05 15:05:36 +00:00
000049_drop_licenses_module_path_version_not_null.down.sql migrations: make licenses.module_path and licenses.version nullable 2020-11-20 21:56:37 +00:00
000049_drop_licenses_module_path_version_not_null.up.sql migrations: make licenses.module_path and licenses.version nullable 2020-11-20 21:56:37 +00:00
000050_drop_licenses_module_path_version_columns.down.sql migrations: drop licenses.module_path and licenses.version 2020-11-20 21:56:59 +00:00
000050_drop_licenses_module_path_version_columns.up.sql migrations: drop licenses.module_path and licenses.version 2020-11-20 21:56:59 +00:00
000051_drop_documentation_html_not_null.down.sql migrations: drop not null from documentation.html 2020-11-24 17:53:30 +00:00
000051_drop_documentation_html_not_null.up.sql migrations: drop not null from documentation.html 2020-11-24 17:53:30 +00:00
000052_drop_documentation_html.down.sql migrations: drop documentation.html column 2020-12-02 16:14:38 +00:00
000052_drop_documentation_html.up.sql migrations: drop documentation.html column 2020-12-02 16:14:38 +00:00
000053_add_units_v1path_id.down.sql migrations: add units.v1path_id column 2021-01-05 20:16:32 +00:00
000053_add_units_v1path_id.up.sql migrations: add units.v1path_id column 2021-01-05 20:16:32 +00:00
000054_add_path_id_not_null.down.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000054_add_path_id_not_null.up.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000055_add_units_id_module_id_unique.down.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000055_add_units_id_module_id_unique.up.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000056_drop_units_path_not_null.down.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000056_drop_units_path_not_null.up.sql migrations: split 000054 into separate migrations 2021-01-12 15:17:41 +00:00
000057_add_idx_units_v1path_id.down.sql migrations: add index on units.v1path_id 2021-01-14 14:14:27 +00:00
000057_add_idx_units_v1path_id.up.sql migrations: add index on units.v1path_id 2021-01-14 14:14:27 +00:00
000058_units_v1path_id_not_null.down.sql migrations: set units.v1path_id NOT NULL 2021-01-19 14:43:48 +00:00
000058_units_v1path_id_not_null.up.sql migrations: set units.v1path_id NOT NULL 2021-01-19 14:43:48 +00:00
000059_drop_units_path.down.sql migrations: drop units.path column 2021-01-19 15:01:50 +00:00
000059_drop_units_path.up.sql migrations: drop units.path column 2021-01-19 15:01:50 +00:00
000060_set_units_v1_path_nullable.down.sql migrations: make units.v1_path nullable 2021-01-19 19:33:22 +00:00
000060_set_units_v1_path_nullable.up.sql migrations: make units.v1_path nullable 2021-01-19 19:33:22 +00:00
000061_drop_units_v1_path.down.sql migrations: drop units.v1_path 2021-01-20 00:31:57 +00:00
000061_drop_units_v1_path.up.sql migrations: drop units.v1_path 2021-01-20 00:31:57 +00:00
000062_add_symbols.down.sql migrations: add types and tables for symbol history 2021-02-04 18:02:01 +00:00
000062_add_symbols.up.sql migrations: add types and tables for symbol history 2021-02-04 18:02:01 +00:00
000063_add_deprecated.down.sql migrations: add deprecated_comment column to modules table 2021-02-08 17:28:35 +00:00
000063_add_deprecated.up.sql migrations: add deprecated_comment column to modules table 2021-02-08 17:28:35 +00:00
000064_change_symbol_table_columns.down.sql migrations: add symbols.module_path_id and symbols.package_path_id 2021-02-10 21:31:44 +00:00
000064_change_symbol_table_columns.up.sql migrations: add symbols.module_path_id and symbols.package_path_id 2021-02-10 21:31:44 +00:00
000065_rename_symbols_signature_to_synopsis.down.sql migrations: rename symbols.signature to symbols.synopsis 2021-02-17 16:16:00 +00:00
000065_rename_symbols_signature_to_synopsis.up.sql migrations: rename symbols.signature to symbols.synopsis 2021-02-17 16:16:00 +00:00
000066_add_symbol_type_type.down.sql migrations: add Type to enum symbol_type 2021-02-17 16:36:29 +00:00
000066_add_symbol_type_type.up.sql migrations: add Type to enum symbol_type 2021-02-17 16:36:29 +00:00
000067_rename_symbols_to_symbol_names.down.sql migrations: rename symbols to symbol_names 2021-02-19 16:52:23 +00:00
000067_rename_symbols_to_symbol_names.up.sql migrations: rename symbols to symbol_names 2021-02-19 16:52:23 +00:00
000068_create_symbols_table.down.sql migrations: create package symbols table and alter symbol_history 2021-02-19 16:53:05 +00:00
000068_create_symbols_table.up.sql migrations: create package symbols table and alter symbol_history 2021-02-19 16:53:05 +00:00
000069_add_unique_index_package_symbols.down.sql migrations: add package_symbols_package_path_id_module_path_id_section_synopsis_key 2021-02-23 16:18:15 +00:00
000069_add_unique_index_package_symbols.up.sql migrations: add package_symbols_package_path_id_module_path_id_section_synopsis_key 2021-02-23 16:18:15 +00:00
000070_add_raw_latest_versions.down.sql migrations: add raw_latest_versions table 2021-02-24 12:24:15 +00:00
000070_add_raw_latest_versions.up.sql migrations: add raw_latest_versions table 2021-02-24 12:24:15 +00:00
000071_add_module_version_state_has_go_mod.down.sql migrations: add module_version_states.has_go_mod 2021-02-24 22:21:11 +00:00
000071_add_module_version_state_has_go_mod.up.sql migrations: add module_version_states.has_go_mod 2021-02-24 22:21:11 +00:00
000072_add_documentation_goos_goarch_id.down.sql migrations: add OWNED BY for sequence 2021-02-25 18:15:40 +00:00
000072_add_documentation_goos_goarch_id.up.sql migrations: add OWNED BY for sequence 2021-02-25 18:15:40 +00:00
000073_create_documentation_symbols.down.sql migrations: create documentation_symbols 2021-02-24 23:24:54 +00:00
000073_create_documentation_symbols.up.sql migrations: create documentation_symbols 2021-02-24 23:24:54 +00:00
000074_add_latest_module_versions.down.sql migrations: add latest_module_versions table 2021-03-02 13:43:20 +00:00
000074_add_latest_module_versions.up.sql migrations: add latest_module_versions table 2021-03-02 13:43:20 +00:00
000075_add_extension_uuid_ossp.down.sql migrations: add extension uuid-ossp 2021-03-08 04:53:14 +00:00
000075_add_extension_uuid_ossp.up.sql migrations: add extension uuid-ossp 2021-03-08 04:53:14 +00:00
000076_change_unique_index_package_symbols.down.sql migrations: use expression index on package_symbols 2021-03-08 04:53:41 +00:00
000076_change_unique_index_package_symbols.up.sql migrations: use expression index on package_symbols 2021-03-08 04:53:41 +00:00
000077_add_package_symbol_indexes.down.sql migrations: add indexes for package_symbols and documentation_symbols 2021-03-10 16:51:16 +00:00
000077_add_package_symbol_indexes.up.sql migrations: add indexes for package_symbols and documentation_symbols 2021-03-10 16:51:16 +00:00
000078_add_latest_module_versions_columns.down.sql migrations: add status and updated_at columns to latest_module_versions 2021-03-11 16:30:43 +00:00
000078_add_latest_module_versions_columns.up.sql migrations: add status and updated_at columns to latest_module_versions 2021-03-11 16:30:43 +00:00
000079_change_package_symbol_unique.down.sql migrations: change package_symbols unique index 2021-03-15 17:33:27 +00:00
000079_change_package_symbol_unique.up.sql migrations: change package_symbols unique index 2021-03-15 17:33:27 +00:00
000080_add_documentation_symbols_bigint.down.sql migrations: add documentation_symbols id_bigint 2021-03-15 20:10:40 +00:00
000080_add_documentation_symbols_bigint.up.sql migrations: add documentation_symbols id_bigint 2021-03-15 20:10:40 +00:00
000081_drop_raw_latest_versions.down.sql migrations: drop the raw_latest_versions table 2021-03-17 20:58:05 +00:00
000081_drop_raw_latest_versions.up.sql migrations: drop the raw_latest_versions table 2021-03-17 20:58:05 +00:00
000082_add_package_symbols_bigint.down.sql migrations: add package_symbols.id_bigint 2021-03-17 21:06:51 +00:00
000082_add_package_symbols_bigint.up.sql migrations: add package_symbols.id_bigint 2021-03-17 21:06:51 +00:00
000083_add_documentation_bigint.down.sql migrations: add documentation bigint 2021-03-17 21:07:08 +00:00
000083_add_documentation_bigint.up.sql migrations: add documentation bigint 2021-03-17 21:07:08 +00:00
000084_new_documentation.down.sql migrations: add new documentation table and change some PKs 2021-03-19 20:20:31 +00:00
000084_new_documentation.up.sql migrations: add new documentation table and change some PKs 2021-03-19 20:20:31 +00:00
000085_add_documentation_index.down.sql migrations: add documentation indexes 2021-03-22 18:55:08 +00:00
000085_add_documentation_index.up.sql migrations: add documentation indexes 2021-03-22 18:55:08 +00:00
000086_drop_unused_documentation_columns.down.sql migrations: drop unused documentation columns 2021-03-22 19:24:23 +00:00
000086_drop_unused_documentation_columns.up.sql migrations: drop unused documentation columns 2021-03-22 19:24:23 +00:00
000087_drop_symbol_history.down.sql migrations: drop symbol_history table 2021-03-25 20:33:54 +00:00
000087_drop_symbol_history.up.sql migrations: drop symbol_history table 2021-03-25 20:33:54 +00:00
000088_add_latest_module_versions_columns_2.down.sql migrations: add series_path and deprecated columns to latest_module_versions 2021-04-06 16:49:32 +00:00
000088_add_latest_module_versions_columns_2.up.sql migrations: add series_path and deprecated columns to latest_module_versions 2021-04-06 16:49:32 +00:00