summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-28 10:12:41 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-28 10:12:41 +0000
commit74d4e7d50585db230cfe07464a1a4b662c04b409 (patch)
treee96d01ea10f6b1cdcd8744651149fcc8416b7570 /core/helpers/core_installer.php
parentaff2af5e1f23d713255ab03820656fa936230550 (diff)
First round of a task framework. Tasks are job definitions stored in
the database. They're started with admin/maintenance/start/[task_name] which sends down some JS/HTML which regularly pings the task at admin/maintenance/start/[task_id] until its done. The UI is still very rough. It works, though!
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index d3147a02..46eb24c6 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -67,11 +67,11 @@ class core_installer {
`parent_id` int(9) NOT NULL,
`resize_height` int(9) default NULL,
`resize_width` int(9) default NULL,
- `resize_dirty` BOOLEAN default 1,
+ `resize_dirty` boolean default 1,
`right` int(9) NOT NULL,
`thumb_height` int(9) default NULL,
`thumb_width` int(9) default NULL,
- `thumb_dirty` BOOLEAN default 1,
+ `thumb_dirty` boolean default 1,
`title` varchar(255) default NULL,
`type` varchar(32) NOT NULL,
`updated` int(9) default NULL,
@@ -127,6 +127,16 @@ class core_installer {
PRIMARY KEY (`session_id`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
+ $db->query("CREATE TABLE `tasks` (
+ `context` text NOT NULL,
+ `done` boolean DEFAULT 0,
+ `id` int(9) NOT NULL auto_increment,
+ `name` varchar(255) default NULL,
+ `percent_complete` int(9) default 0,
+ `status` varchar(255) default NULL,
+ PRIMARY KEY (`id`))
+ ENGINE=InnoDB DEFAULT CHARSET=utf8;");
+
$db->query("CREATE TABLE `vars` (
`id` int(9) NOT NULL auto_increment,
`module_name` varchar(255) NOT NULL,