pkgsite/migrations
Jonathan Amsterdam f4ff88d904 migrations: create package_imports2 table
This will replace package_imports.

It has a BIGINT for the reference to unit_id, and switches to_path
from a string to a path id.

Change-Id: Ib2e50df2a7629fc202d993ae792890caee9c6d0e
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/326130
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
2021-06-08 19:13:38 +00:00
..
000001_initial_schema_from_pg_dump.down.sql
000001_initial_schema_from_pg_dump.up.sql
000002_add_modules_identity.down.sql
000002_add_modules_identity.up.sql
000003_add_paths_table.down.sql
000003_add_paths_table.up.sql
000004_redo_golang_search_config.down.sql
000004_redo_golang_search_config.up.sql
000005_change_b_weight.down.sql
000005_change_b_weight.up.sql
000006_add_identity_keys.down.sql
000006_add_identity_keys.up.sql
000007_add_readme_package_imports_documentation_tables.down.sql
000007_add_readme_package_imports_documentation_tables.up.sql
000008_remove_golang_text_config.down.sql
000008_remove_golang_text_config.up.sql
000009_add_path_tokens_config.down.sql
000009_add_path_tokens_config.up.sql
000010_rename_readme_filename_to_file_path.down.sql
000010_rename_readme_filename_to_file_path.up.sql
000011_add_packages_index.down.sql
000011_add_packages_index.up.sql
000012_add_modules_series_path_index.down.sql
000012_add_modules_series_path_index.up.sql
000013_add_version_map_indexes.down.sql
000013_add_version_map_indexes.up.sql
000014_add_paths_module_id_index.down.sql
000014_add_paths_module_id_index.up.sql
000015_add_package_version_states_module_path_version_index.down.sql
000015_add_package_version_states_module_path_version_index.up.sql
000016_add_module_version_states_num_packages.down.sql
000016_add_module_version_states_num_packages.up.sql
000017_add_module_version_states_num_packages_index.down.sql
000017_add_module_version_states_num_packages_index.up.sql
000018_add_module_version_states_status_index.down.sql
000018_add_module_version_states_status_index.up.sql
000019_add_imports_unique_index.down.sql
000019_add_imports_unique_index.up.sql
000020_add_search_documents_module_path_index.down.sql
000020_add_search_documents_module_path_index.up.sql
000021_add_version_map_go_mod_path_column.down.sql
000021_add_version_map_go_mod_path_column.up.sql
000022_change_has_go_mod_not_null.down.sql
000022_change_has_go_mod_not_null.up.sql
000023_change_version_map_go_mod_path_not_null.down.sql
000023_change_version_map_go_mod_path_not_null.up.sql
000024_add_documentation_source_files_column.down.sql
000024_add_documentation_source_files_column.up.sql
000025_add_module_incomapatible_column.down.sql
000025_add_module_incomapatible_column.up.sql
000026_change_incompatible_not_null.down.sql
000026_change_incompatible_not_null.up.sql
000027_add_modules_status_column.down.sql
000027_add_modules_status_column.up.sql
000028_add_idx_licenses_module_id.down.sql
000028_add_idx_licenses_module_id.up.sql
000029_change_licenses_module_id_not_null.down.sql
000029_change_licenses_module_id_not_null.up.sql
000030_remove_experiments.down.sql
000030_remove_experiments.up.sql
000031_drop_tsv_parent_directories.down.sql
000031_drop_tsv_parent_directories.up.sql
000032_drop_search_documents_package_path_fkey.down.sql
000032_drop_search_documents_package_path_fkey.up.sql
000033_drop_search_documents_package_path_module_path_version_fkey.down.sql
000033_drop_search_documents_package_path_module_path_version_fkey.up.sql
000034_drop_licenses_module_path_fkey.down.sql
000034_drop_licenses_module_path_fkey.up.sql
000035_add_unique_idx_licenses_module_id_file_path.down.sql
000035_add_unique_idx_licenses_module_id_file_path.up.sql
000036_change_licenses_primary_key.down.sql
000036_change_licenses_primary_key.up.sql
000037_drop_modules_readme_columns.down.sql
000037_drop_modules_readme_columns.up.sql
000038_drop_imports_table.down.sql
000038_drop_imports_table.up.sql
000039_drop_packages_table.down.sql
000039_drop_packages_table.up.sql
000040_drop_alternative_module_paths.down.sql
000040_drop_alternative_module_paths.up.sql
000041_drop_idx_paths_path.down.sql
000041_drop_idx_paths_path.up.sql
000042_add_search_documents_path_id.down.sql
000042_add_search_documents_path_id.up.sql
000043_add_units_view.down.sql
000043_add_units_view.up.sql
000044_rename_paths_to_units.down.sql
000044_rename_paths_to_units.up.sql
000045_create_paths_table.down.sql
000045_create_paths_table.up.sql
000046_rename_path_id_columns.down.sql
000046_rename_path_id_columns.up.sql
000047_add_unique_on_paths_path.down.sql
000047_add_unique_on_paths_path.up.sql
000048_add_idx_units_path_id.down.sql
000048_add_idx_units_path_id.up.sql
000049_drop_licenses_module_path_version_not_null.down.sql
000049_drop_licenses_module_path_version_not_null.up.sql
000050_drop_licenses_module_path_version_columns.down.sql
000050_drop_licenses_module_path_version_columns.up.sql
000051_drop_documentation_html_not_null.down.sql
000051_drop_documentation_html_not_null.up.sql
000052_drop_documentation_html.down.sql
000052_drop_documentation_html.up.sql
000053_add_units_v1path_id.down.sql
000053_add_units_v1path_id.up.sql
000054_add_path_id_not_null.down.sql
000054_add_path_id_not_null.up.sql
000055_add_units_id_module_id_unique.down.sql
000055_add_units_id_module_id_unique.up.sql
000056_drop_units_path_not_null.down.sql
000056_drop_units_path_not_null.up.sql
000057_add_idx_units_v1path_id.down.sql
000057_add_idx_units_v1path_id.up.sql
000058_units_v1path_id_not_null.down.sql
000058_units_v1path_id_not_null.up.sql
000059_drop_units_path.down.sql
000059_drop_units_path.up.sql
000060_set_units_v1_path_nullable.down.sql
000060_set_units_v1_path_nullable.up.sql
000061_drop_units_v1_path.down.sql
000061_drop_units_v1_path.up.sql
000062_add_symbols.down.sql
000062_add_symbols.up.sql
000063_add_deprecated.down.sql
000063_add_deprecated.up.sql
000064_change_symbol_table_columns.down.sql
000064_change_symbol_table_columns.up.sql
000065_rename_symbols_signature_to_synopsis.down.sql
000065_rename_symbols_signature_to_synopsis.up.sql
000066_add_symbol_type_type.down.sql
000066_add_symbol_type_type.up.sql
000067_rename_symbols_to_symbol_names.down.sql
000067_rename_symbols_to_symbol_names.up.sql
000068_create_symbols_table.down.sql
000068_create_symbols_table.up.sql
000069_add_unique_index_package_symbols.down.sql
000069_add_unique_index_package_symbols.up.sql
000070_add_raw_latest_versions.down.sql
000070_add_raw_latest_versions.up.sql
000071_add_module_version_state_has_go_mod.down.sql
000071_add_module_version_state_has_go_mod.up.sql
000072_add_documentation_goos_goarch_id.down.sql
000072_add_documentation_goos_goarch_id.up.sql
000073_create_documentation_symbols.down.sql
000073_create_documentation_symbols.up.sql
000074_add_latest_module_versions.down.sql
000074_add_latest_module_versions.up.sql
000075_add_extension_uuid_ossp.down.sql
000075_add_extension_uuid_ossp.up.sql
000076_change_unique_index_package_symbols.down.sql
000076_change_unique_index_package_symbols.up.sql
000077_add_package_symbol_indexes.down.sql
000077_add_package_symbol_indexes.up.sql
000078_add_latest_module_versions_columns.down.sql
000078_add_latest_module_versions_columns.up.sql
000079_change_package_symbol_unique.down.sql
000079_change_package_symbol_unique.up.sql
000080_add_documentation_symbols_bigint.down.sql
000080_add_documentation_symbols_bigint.up.sql
000081_drop_raw_latest_versions.down.sql
000081_drop_raw_latest_versions.up.sql
000082_add_package_symbols_bigint.down.sql
000082_add_package_symbols_bigint.up.sql
000083_add_documentation_bigint.down.sql
000083_add_documentation_bigint.up.sql
000084_new_documentation.down.sql
000084_new_documentation.up.sql
000085_add_documentation_index.down.sql
000085_add_documentation_index.up.sql
000086_drop_unused_documentation_columns.down.sql
000086_drop_unused_documentation_columns.up.sql
000087_drop_symbol_history.down.sql
000087_drop_symbol_history.up.sql
000088_add_latest_module_versions_columns_2.down.sql
000088_add_latest_module_versions_columns_2.up.sql
000089_drop_modules_deprecation_column.down.sql
000089_drop_modules_deprecation_column.up.sql
000090_rename_new_documentation.down.sql
000090_rename_new_documentation.up.sql
000091_add_symbol_history.down.sql
000091_add_symbol_history.up.sql
000092_drop_old_documentation.down.sql
000092_drop_old_documentation.up.sql
000093_fix_package_symbols_unique.down.sql
000093_fix_package_symbols_unique.up.sql
000094_alter_symbol_history.down.sql
000094_alter_symbol_history.up.sql
000095_add_symbol_history_idx.down.sql
000095_add_symbol_history_idx.up.sql
000096_add_symbol_history_goos_goarch_idx.down.sql
000096_add_symbol_history_goos_goarch_idx.up.sql
000097_alter_search_documents.down.sql
000097_alter_search_documents.up.sql
000098_add_symbol_search_documents.down.sql migrations: add symbol_search_documents 2021-05-13 20:07:24 +00:00
000098_add_symbol_search_documents.up.sql migrations: add symbol_search_documents 2021-05-13 20:07:24 +00:00
000099_add_paths_big_id.down.sql migrations: add big_id column to paths table 2021-05-22 12:22:11 +00:00
000099_add_paths_big_id.up.sql migrations: add big_id column to paths table 2021-05-22 12:22:11 +00:00
000100_rename_paths_big_id.down.sql migrations: rename paths.big_id to id 2021-05-24 14:13:02 +00:00
000100_rename_paths_big_id.up.sql migrations: rename paths.big_id to id 2021-05-24 14:13:02 +00:00
000101_validate_constraints.down.sql migrations: validate constraints 2021-05-24 14:50:37 +00:00
000101_validate_constraints.up.sql migrations: validate constraints 2021-05-24 14:50:37 +00:00
000102_enlarge_lmv_path_ids.down.sql migrations: change type of latest_module_versions.module_path_id to bigint 2021-05-24 20:24:21 +00:00
000102_enlarge_lmv_path_ids.up.sql migrations: change type of latest_module_versions.module_path_id to bigint 2021-05-24 20:24:21 +00:00
000103_add_big_package_symbol_path_ids.down.sql migrations: enlarge package_symbols path ids, part 1 2021-05-25 18:13:28 +00:00
000103_add_big_package_symbol_path_ids.up.sql migrations: enlarge package_symbols path ids, part 1 2021-05-25 18:13:28 +00:00
000104_alter_package_symbols.down.sql migrations: enlarge package_symbols references to paths 2021-06-01 17:49:11 +00:00
000104_alter_package_symbols.up.sql migrations: enlarge package_symbols references to paths 2021-06-01 17:49:11 +00:00
000105_drop_big_package_symbols_columns.down.sql migrations: drop package_symbols big id columns 2021-06-01 19:50:39 +00:00
000105_drop_big_package_symbols_columns.up.sql migrations: drop package_symbols big id columns 2021-06-01 19:50:39 +00:00
000106_enlarge_unit_id.down.sql migrations: enlarge units id column 2021-06-02 11:29:56 +00:00
000106_enlarge_unit_id.up.sql migrations: enlarge units id column 2021-06-02 11:29:56 +00:00
000107_enlarge_readmes_unit_id.down.sql migrations: enlarge readmes.unit_id 2021-06-02 17:04:45 +00:00
000107_enlarge_readmes_unit_id.up.sql migrations: enlarge readmes.unit_id 2021-06-02 17:04:45 +00:00
000108_add_new_symbol_history.down.sql migrations: add table new_symbol_history 2021-06-03 17:08:33 +00:00
000108_add_new_symbol_history.up.sql migrations: add table new_symbol_history 2021-06-03 17:08:33 +00:00
000109_add_documentation_big_unit_id.down.sql migrations: enlarge documentation.unit_id, part 1 2021-06-08 14:57:26 +00:00
000109_add_documentation_big_unit_id.up.sql migrations: enlarge documentation.unit_id, part 1 2021-06-08 14:57:26 +00:00
000110_add_doc_fkey_constraint.down.sql migrations: add foreign key constraint for documentation.big_unit_id 2021-06-08 14:57:32 +00:00
000110_add_doc_fkey_constraint.up.sql migrations: add foreign key constraint for documentation.big_unit_id 2021-06-08 14:57:32 +00:00
000111_rename_doc_big_unit_id.down.sql migrations: enlarge documentation unit_id, part 2 2021-06-08 18:01:26 +00:00
000111_rename_doc_big_unit_id.up.sql migrations: enlarge documentation unit_id, part 2 2021-06-08 18:01:26 +00:00
000112_validate_documentation_fkey_constraint.down.sql migrations: validate foreign key constraint on documentation.unit_id 2021-06-08 18:42:01 +00:00
000112_validate_documentation_fkey_constraint.up.sql migrations: validate foreign key constraint on documentation.unit_id 2021-06-08 18:42:01 +00:00
000113_add_imports.down.sql migrations: create package_imports2 table 2021-06-08 19:13:38 +00:00
000113_add_imports.up.sql migrations: create package_imports2 table 2021-06-08 19:13:38 +00:00