Cloudlog/application/migrations/054_add_qsl_images.php

19 行
504 B
PHP

2020-10-29 06:20:03 +08:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_qsl_images extends CI_Migration {
public function up()
{
// create qsl images table
$this->db->query("CREATE TABLE IF NOT EXISTS `qsl_images`
2020-10-29 06:20:03 +08:00
(`id` integer NOT NULL auto_increment, `qsoid` int, `filename` text, primary key (id))
ENGINE=myisam DEFAULT CHARSET=utf8;");
}
public function down()
{
$this->db->query("");
}
}