File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -508,11 +508,6 @@ impl MutTxId {
508508 /// - The index metadata is inserted into the system tables (and other data structures reflecting them).
509509 /// - The returned ID is unique and is not `IndexId::SENTINEL`.
510510 pub fn create_index ( & mut self , mut index_schema : IndexSchema , is_unique : bool ) -> Result < IndexId > {
511- /*
512- if index_schema.index_id != IndexId::SENTINEL {
513- return Err(anyhow::anyhow!("`index_id` must be `IndexId::SENTINEL` in `{:#?}`", index_schema).into());
514- }
515- */
516511 let table_id = index_schema. table_id ;
517512 if table_id == TableId :: SENTINEL {
518513 return Err ( anyhow:: anyhow!( "`table_id` must not be `TableId::SENTINEL` in `{:#?}`" , index_schema) . into ( ) ) ;
@@ -975,16 +970,6 @@ impl MutTxId {
975970 /// - The constraint metadata is inserted into the system tables (and other data structures reflecting them).
976971 /// - The returned ID is unique and is not `constraintId::SENTINEL`.
977972 fn create_constraint ( & mut self , mut constraint : ConstraintSchema ) -> Result < ConstraintId > {
978- /*
979- if constraint.constraint_id != ConstraintId::SENTINEL {
980- return Err(anyhow::anyhow!(
981- "`constraint_id` must be `ConstraintId::SENTINEL` in `{:#?}`",
982- constraint
983- )
984- .into());
985- }
986-
987- */
988973 if constraint. table_id == TableId :: SENTINEL {
989974 return Err ( anyhow:: anyhow!( "`table_id` must not be `TableId::SENTINEL` in `{:#?}`" , constraint) . into ( ) ) ;
990975 }
Original file line number Diff line number Diff line change @@ -355,7 +355,6 @@ fn system_module_def() -> ModuleDef {
355355 // TODO: add empty unique constraint here, once we've implemented those.
356356
357357 let st_connection_credentials_type = builder. add_type :: < StConnectionCredentialsRow > ( ) ;
358- // let st_connection_credentials_unique_cols = [StConnectionCredentialsFields::ConnectionId];
359358 builder
360359 . build_table (
361360 ST_CONNECTION_CREDENTIALS_NAME ,
You can’t perform that action at this time.
0 commit comments