Ticket #449 (new Feature Request)

Opened 7 months ago

Last modified 2 months ago

Porting DBForge Functionality from CI 1.6

Reported by: kolanos Owned by: kolanos
Priority: minor Milestone: 2.2
Component: Modules Version: SVN HEAD
Keywords: dbforge Cc:

Description

I decided to try my hand at porting DBForge functionality over from CI 1.6 to Kohana. I have attached what I have done so far, the MySQL and MySQLi drivers are fully functional, however the Postgre and SQLite drivers required more testing/tweaking.

Features:

  • Create database (MySQL, MySQLi, and Postgre only)
  • Drop database (MySQL, MySQLi, and Postgre only)
  • Create table (MySQL, MySQLi, and Postgre only)
  • Drop table (MySQL, MySQLi, and Postgre only)
  • Alter tables

More info: http://codeigniter.com/user_guide/database/forge.html

The DBForge functionality could be really useful for modules, where modules could create databases/tables on the fly.

Attachments

kohana2-dbforge.tar.gz (9.7 kB) - added by kolanos 7 months ago.
diff files and i18n translations (some need to be revised)
dbforge-0.1.tar.gz (5.7 kB) - added by kolanos 7 months ago.
version 0.1 of DBForge as a module
migrations.rar (11.9 kB) - added by BrandX 2 months ago.
I've attached my working version of the migrations mod.

Change History

Changed 7 months ago by kolanos

diff files and i18n translations (some need to be revised)

Changed 7 months ago by zombor

  • milestone changed from 2.1.2 to 2.2

Changed 7 months ago by zombor

  • status changed from new to closed
  • resolution set to wontfix

We really have no intention of including this functionality in the core. Feel free to host and maintain this as an add-on module.

Changed 7 months ago by Shadowhand

  • status changed from closed to reopened
  • resolution deleted

Changed 7 months ago by Shadowhand

I'd like to leave this open for review, possibly as an official module. Thanks kolanos!

Changed 7 months ago by kolanos

I am looking into converting this into a module, as per zombor's suggestion.

Changed 7 months ago by kolanos

I have tried two methods with only partial success. What is the suggested way to extend the Database library, including the drivers?

Changed 7 months ago by kolanos

Ok, here's version 0.1 of the DBForge module. It currently only has MySQL and MySQLi drivers and i18n for en_US and en_GB. I plant o have the other drivers and language files included in 0.2.

Please review, test and report back any bugs/suggestions.

Thanks!

Changed 7 months ago by kolanos

version 0.1 of DBForge as a module

Changed 7 months ago by kolanos

  • owner changed from zombor to kolanos
  • status changed from reopened to new
  • component changed from Libraries:Database to Modules

Changed 2 months ago by BrandX

I guess this hasn't been looked at for a while, but the migrations mod I ported from Kohana duplicates a lot of this functionality. Any suggestions on how to marry the two?

Changed 2 months ago by kolanos

BrandX, where can I find the migrations mod?

Changed 2 months ago by BrandX

I've attached my working version of the migrations mod.

Note: See TracTickets for help on using tickets.