- Site administration -> Development -> XMLDB editor
- Find your module and click [Load]
- Click [Edit]
- Click [New table] and fill in the detail
- Click [Back]
- Click [View PHP code]
- Select action: create table
- Select table: select your table name
- Click "View"
- Copy the code to mod/your_mod/db/upgrade.php
- Change XXXXXXXXXX to new version number (e.g. 2011022301)
- Open mod/your_mod/version.php, change $module->version to the new version number
- Notification
- Done
沒有留言:
張貼留言