daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. namespace Fuel\Migrations;
  4.  
  5. class Create_users
  6. {
  7.     public function up()
  8.     {
  9.         \DBUtil::create_table('users', array(
  10.             'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true),
  11.             'user_name' => array('constraint' => 20, 'type' => 'varchar', 'unique' => true),
  12.             'password' => array('constraint' => 40, 'type' => 'varchar'),
  13.             'created_at' => array('constraint' => 11, 'type' => 'int'),
  14.             'updated_at' => array('constraint' => 11, 'type' => 'int'),
  15.         ), array('id'));
  16.     }
  17.  
  18.     public function down()
  19.     {
  20.         \DBUtil::drop_table('users');
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top