mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-26 04:09:50 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Altering creation_time column removing not null and default constraint. ---- #### AI description (iteration 1) #### PR Classification Performance improvement #### PR Summary This pull request alters the `creation_time` column in the database schema to improve performance. - Added `AlterCreationTime` function in `cluster_operations.c` to modify the `creation_time` column. - Updated `SetupCluster` function in `cluster_operations.c` to call `AlterCreationTime`. - Created new SQL scripts `extension_upgrade_alter_creation_time_1.102-0.sql` and `extension_upgrade_alter_creation_time_1.102-0.out` for testing the changes. - Modified multiple test output files to reflect the changes in the `creation_time` column constraints. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
8 lines
439 B
SQL
8 lines
439 B
SQL
DROP FUNCTION IF EXISTS __API_SCHEMA_INTERNAL_V2__.apply_extension_data_table_upgrade;
|
|
CREATE OR REPLACE FUNCTION __API_SCHEMA_INTERNAL_V2__.apply_extension_data_table_upgrade(int4, int4, int4)
|
|
RETURNS void
|
|
LANGUAGE c
|
|
STRICT
|
|
AS 'MODULE_PATHNAME', $function$apply_extension_data_table_upgrade$function$;
|
|
COMMENT ON FUNCTION __API_SCHEMA_INTERNAL_V2__.apply_extension_data_table_upgrade(int4, int4, int4)
|
|
IS 'alter creation time column'; |