feat: add updated_on to tablemeta with a default of created_on (#7072)

* feat: add updated_on to tablemeta with a default of created_on

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* feat: support the update_on on alter procedure

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* feat: add updated_on into information_schema.tables

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* fix: make sqlness happy

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* test: add test case for tablemeta update

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* fix: fix failing test for ALTER TABLE

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

* feat: use created_on as default for updated_on when missing

Signed-off-by: Alan Tang <jmtangcs@gmail.com>

---------

Signed-off-by: Alan Tang <jmtangcs@gmail.com>
This commit is contained in:
Alan Tang
2025-10-15 19:12:27 +08:00
committed by GitHub
parent aa98033e85
commit 8073e552df
14 changed files with 254 additions and 125 deletions

View File

@@ -1731,6 +1731,7 @@ pub fn create_table_info(
region_numbers: vec![],
options: table_options,
created_on: Utc::now(),
updated_on: Utc::now(),
partition_key_indices,
column_ids: vec![],
};