Feature Request #3625
Creating tables in database
| Status: | New | Start date: | 01/20/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | Kohana v3.x - v3.4.0 | |||
| Resolution: | Points: |
Description
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)
->text('description')
->execute();
History
Updated by Jeremy Bush over 2 years ago
- Target version changed from v3.1.0 to v3.2.0
Updated by Bence Eros over 2 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/
Updated by Isaiah DeRose-Wilson over 2 years ago
We are talking about using something like the real-database module in 3.2 (or maybe 3.3).
Updated by Isaiah DeRose-Wilson over 2 years ago
- Project changed from Kohana v3.x to Database
- Category deleted (
Modules:Database)
Updated by Chris Bandy almost 2 years ago
- Assignee set to Chris Bandy
- Target version changed from v3.2.0 to v3.3.0
Updated by Chris Bandy over 1 year ago
- Target version changed from v3.3.0 to v3.4.0