@@ -686,25 +686,6 @@ private function create_schema(array ...$columnDataOptions)
686686 return false ;
687687 }
688688
689- /**
690- * Creates an database table and columns, by either:
691- * - array( column, datatype, ...value/options arguments ) // calls create_schema()
692- * - column( column, datatype, ...value/options arguments ) // returns string
693- * - primary( primary_key_label, ...primaryKeys) // returns string
694- * - foreign( foreign_key_label, ...foreignKeys) // returns string
695- * - unique( unique_key_label, ...uniqueKeys) // returns string
696- *
697- * @param string $table, - The name of the db table that you wish to create
698- * @param mixed $schemas, - An array of:
699- *
700- * @param string $column|CONSTRAINT, - column name/CONSTRAINT usage for PRIMARY|FOREIGN KEY
701- * @param string $type|$constraintName, - data type for column/primary|foreign constraint name
702- * @param mixed $size|...$primaryForeignKeys,
703- * @param mixed $value, - column should be NULL or NOT NULL. If omitted, assumes NULL
704- * @param mixed $default - Optional. It is the value to assign to the column
705- *
706- * @return mixed results of query() call
707- */
708689 public function create (string $ table = null , ...$ schemas )
709690 {
710691 $ vendor = ezSchema::vendor ();
@@ -768,6 +749,7 @@ public function create(string $table = null, ...$schemas)
768749 return false ;
769750 }
770751
752+ // todo not finish, not tested
771753 public function alter (string $ table = null , ...$ schemas )
772754 {
773755 if (empty ($ table ) || empty ($ schemas ))
0 commit comments