new pisilinux web sites

This commit is contained in:
Erkan IŞIK
2026-07-01 16:44:17 +03:00
commit b58488b586
21740 changed files with 2066209 additions and 0 deletions
@@ -0,0 +1,45 @@
<?php namespace ZN\Database\MySQLi;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\Database\DriverForge;
class DBForge extends DriverForge
{
/**
* Drop Foreign Key
*
* 5.7.4[added]
*
* @param string $table
* @param string $constraint = NULL
*
* @return string
*/
public function dropForeignKey($table, $constraint = NULL)
{
return 'ALTER TABLE ' . $table . ' DROP ' . $this->db()->foreignKey() . ' ' . $constraint . ';';
}
/**
* Drop Primary Key
*
* 5.7.4[added]
*
* @param string $table
* @param string $constraint = NULL
*
* @return string
*/
public function dropPrimaryKey($table, $constraint = NULL)
{
return 'ALTER TABLE ' . $table . ' DROP ' . $this->db()->primaryKey() . ';';
}
}