mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-09 16:19:28 +00:00
36 lines
581 B
PHP
36 lines
581 B
PHP
<?php
|
|
|
|
if (! defined("BASEPATH")) exit("No direct script access allowed");
|
|
|
|
require_once APPPATH . "/libraries/MigrationLib.php";
|
|
|
|
class Migration_Pk_migrations extends MigrationLib
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function up()
|
|
{
|
|
$this->startUP();
|
|
|
|
$this->addPrimaryKey(
|
|
"public",
|
|
"ci_migrations",
|
|
"pk_migrations",
|
|
array("version")
|
|
);
|
|
|
|
$this->endUP();
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->startDown();
|
|
|
|
$this->execQuery('ALTER TABLE ci_migrations DROP CONSTRAINT pk_migrations');
|
|
|
|
$this->endDown();
|
|
}
|
|
} |