Skip to content

Instantly share code, notes, and snippets.

@mrelliot69
mrelliot69 / db_helper.php
Created May 18, 2022 18:29 — forked from natanfelles/db_helper.php
CodeIgniter Database Helper to Add and Drop Foreign Keys and Triggers
<?php
/**
* @author Natan Felles <natanfelles@gmail.com>
*/
defined('BASEPATH') OR exit('No direct script access allowed');
if ( ! function_exists('add_foreign_key'))
{
/**
* @param string $table Table name