00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 $installer = $this;
00028
00029
00030 $installer->startSetup();
00031
00032 $installer->run("
00033
00034 -- DROP TABLE IF EXISTS `{$this->getTable('dataflow_session')}`;
00035 CREATE TABLE `{$this->getTable('dataflow_session')}` (
00036 `session_id` int(11) NOT NULL auto_increment,
00037 `user_id` int(11) NOT NULL,
00038 `created_date` datetime default NULL,
00039 `file` varchar(255) character set utf8 default NULL,
00040 `type` varchar(32) character set utf8 default NULL,
00041 `direction` varchar(32) character set utf8 default NULL,
00042 `comment` varchar(255) character set utf8 default NULL,
00043 PRIMARY KEY (`session_id`)
00044 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
00045
00046 -- DROP TABLE IF EXISTS `{$this->getTable('dataflow_import_data')}`;
00047 CREATE TABLE `{$this->getTable('dataflow_import_data')}` (
00048 `import_id` int(11) NOT NULL auto_increment,
00049 `session_id` int(11) default NULL,
00050 `serial_number` int(11) NOT NULL default '0',
00051 `value` text character set utf8,
00052 `status` int(1) NOT NULL default '0',
00053 PRIMARY KEY (`import_id`),
00054 KEY `FK_dataflow_import_data` (`session_id`),
00055 CONSTRAINT `FK_dataflow_import_data` FOREIGN KEY (`session_id`) REFERENCES `{$this->getTable('dataflow_session')}` (`session_id`)
00056 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
00057 ");
00058
00059 $installer->endSetup();