Feature Request #3625

Creating tables in database

Added by Anonymous about 4 years ago. Updated about 3 years ago.

Status:NewStart date:01/20/2011
Priority:NormalDue date:
Assignee:Chris Bandy% Done:


Target version:Kohana v3.x - v3.4.0
Resolution: Points:


Is it possible to add new query type - creating tables in database.
Code e.g.

$query = DB::create('tablename', TRUE) // "CREATE TABLE IF NOT EXISTS" 
     ->int('id', 11, array('auto_increment' => TRUE)
     ->varchar('title', 255)


#1 Updated by Jeremy Bush about 4 years ago

  • Target version changed from v3.1.0 to v3.2.0

#2 Updated by Bence Eros about 4 years ago

I think if this feature will be implemented then all DDL operations should be supported by the Database module. Furthermore the create() method name is not a good since all database objects are created using the create() keyword, not only tables.

Ollym started developing a Kohana module for that, it's available on github: https://github.com/ollym/dbforge/

#3 Updated by Isaiah DeRose-Wilson about 4 years ago

We are talking about using something like the real-database module in 3.2 (or maybe 3.3).

#4 Updated by Isaiah DeRose-Wilson about 4 years ago

  • Project changed from Kohana v3.x to Database
  • Category deleted (Modules:Database)

#5 Updated by Chris Bandy over 3 years ago

  • Assignee set to Chris Bandy
  • Target version changed from v3.2.0 to v3.3.0

#6 Updated by Chris Bandy about 3 years ago

  • Target version changed from v3.3.0 to v3.4.0

Also available in: Atom PDF