Cloudlog/application/migrations/071_add_queries_table.php
Peter Goodhall f5f8243fc2 Revert "Merge branch 'station_logbooks' into master"
This reverts commit 246cec2d66, reversing
changes made to 57f370aa1e.
2021-11-14 11:28:50 +00:00

14 行
417 B
PHP

<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_queries_table extends CI_Migration
{
public function up()
{
$this->db->query("create table if not exists queries (id integer not null auto_increment, query text, description text, userid integer not null, primary key (id)) ENGINE=myisam DEFAULT CHARSET=utf8;");
}
public function down()
{
$this->db->query("");
}
}