Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Fuel\Migrations;
- class Create_users
- {
- public function up()
- {
- \DBUtil::create_table('users', array(
- 'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true),
- 'user_name' => array('constraint' => 20, 'type' => 'varchar', 'unique' => true),
- 'password' => array('constraint' => 40, 'type' => 'varchar'),
- 'created_at' => array('constraint' => 11, 'type' => 'int'),
- 'updated_at' => array('constraint' => 11, 'type' => 'int'),
- ), array('id'));
- }
- public function down()
- {
- \DBUtil::drop_table('users');
- }
- }
Add Comment
Please, Sign In to add comment