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