uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
eshop.codeskitter.site
/
application
/
migrations
/
006_product_faqs.php
/
/
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Migration_product_faqs extends CI_Migration { public function up() { $fields = array( 'updated_by' => array( 'type' => 'INT', 'constraint' => '11', 'NULL' => TRUE, 'default' => 0, 'after' => 'deliver_by' ) ); $this->dbforge->add_column('order_items', $fields); $fields = array( 'bonus_type' => array( 'type' => 'VARCHAR', 'constraint' => '30', 'NULL' => TRUE, 'default' => 'percentage_per_order', 'after' => 'address' ) ); $this->dbforge->add_column('users', $fields); $fields = array( 'type_id' => array( 'type' => 'TEXT', ), ); $this->dbforge->modify_column('notifications', $fields); /* adding new table system_notification */ $this->dbforge->add_field([ 'id' => [ 'type' => 'INT', 'constraint' => '11', 'auto_increment' => TRUE, 'NULL' => TRUE ], 'title' => [ 'type' => 'VARCHAR', 'constraint' => '128', 'NULL' => TRUE ], 'message' => [ 'type' => 'VARCHAR', 'constraint' => '512', 'NULL' => TRUE ], 'type' => [ 'type' => 'VARCHAR', 'constraint' => '64', 'NULL' => TRUE ], 'date_sent TIMESTAMP default CURRENT_TIMESTAMP', ]); $this->dbforge->add_key('id', TRUE); $this->dbforge->create_table('custom_notifications'); $this->dbforge->add_field([ 'id' => [ 'type' => 'INT', 'constraint' => '11', 'auto_increment' => TRUE, ], 'user_id' => [ 'type' => 'INT', 'constraint' => '11', ], 'product_id' => [ 'type' => 'INT', 'constraint' => '11', ], 'votes' => [ 'type' => 'INT', 'constraint' => '11', 'default' => 0, ], 'question' => [ 'type' => 'TEXT', 'NULL' => TRUE, 'default' => 0, ], 'answer' => [ 'type' => 'TEXT', 'NULL' => TRUE, 'default' => 0, ], 'answered_by' => [ 'type' => 'INT', 'constraint' => '11', 'default' => 0, ], 'date_added TIMESTAMP default CURRENT_TIMESTAMP', ]); $this->dbforge->add_key('id', TRUE); $this->dbforge->create_table('product_faqs'); } public function down() { $this->dbforge->drop_column('users', 'bonus_type'); $this->dbforge->drop_column('order_items', 'updated_by'); $this->dbforge->drop_table('custom_notifications'); $this->dbforge->drop_table('product_faqs'); } }
/home/users/unlimited/www/eshop.codeskitter.site/application/migrations/006_product_faqs.php