Changes between Initial Version and Version 1 of Ticket #27871


Ignore:
Timestamp:
Feb 22, 2017, 11:07:43 AM (8 years ago)
Author:
Kyle Agronick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27871 – Description

    initial v1  
    1818
    1919}}}
     20
     21
     22Running ./mange.py migrate makes no difference. I recently moved the codebase to Python 3.
     23
     24Below is the create table syntax for the relevant tables:
     25
     26
     27{{{
     28CREATE TABLE `jobs_jobparameter` (
     29  `id` int(11) NOT NULL AUTO_INCREMENT,
     30  `name` varchar(100) NOT NULL,
     31  `value` longtext NOT NULL,
     32  `job_group_id` int(11) NOT NULL,
     33  PRIMARY KEY (`id`),
     34  UNIQUE KEY `jobs_jobparameter_job_group_id_bbb541f6_uniq` (`job_group_id`,`name`),
     35  KEY `jobs_jobparameter_name_84b3d6ba_uniq` (`name`),
     36  CONSTRAINT `jobs_jobparameter_job_group_id_7205c657_fk_jobs_jobgroup_id` FOREIGN KEY (`job_group_id`) REFERENCES `jobs_jobgroup` (`id`)
     37) ENGINE=InnoDB AUTO_INCREMENT=45338 DEFAULT CHARSET=utf8
     38
     39CREATE TABLE `jobs_joblog` (
     40  `id` int(11) NOT NULL AUTO_INCREMENT,
     41  `command` longtext NOT NULL,
     42  `command_output` longtext NOT NULL,
     43  `result` tinyint(1) NOT NULL,
     44  `job_id` int(11) NOT NULL,
     45  PRIMARY KEY (`id`),
     46  KEY `jobs_joblog_job_id_734186c1ec7977e9_fk_jobs_job_id` (`job_id`),
     47  CONSTRAINT `jobs_joblog_job_id_ae8f8e96_fk_jobs_job_id` FOREIGN KEY (`job_id`) REFERENCES `jobs_job` (`id`)
     48) ENGINE=InnoDB AUTO_INCREMENT=7749677 DEFAULT CHARSET=latin1
     49
     50CREATE TABLE `jobs_jobgroup` (
     51  `id` int(11) NOT NULL AUTO_INCREMENT,
     52  `job_type` varchar(100) NOT NULL,
     53  `created_by_id` int(11) NOT NULL,
     54  `created_date` datetime NOT NULL,
     55  `queued_date` datetime DEFAULT NULL,
     56  PRIMARY KEY (`id`),
     57  KEY `jobs_jobgroup_created_by_id_769ccba8b90c80f8_fk_auth_user_id` (`created_by_id`),
     58  KEY `jobs_jobgroup_job_type_c2db1010_uniq` (`job_type`),
     59  KEY `jobs_jobgroup_created_date_852898d7_uniq` (`created_date`),
     60  KEY `jobs_jobgroup_queued_date_c38be898_uniq` (`queued_date`),
     61  CONSTRAINT `jobs_jobgroup_created_by_id_769ccba8b90c80f8_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`)
     62) ENGINE=InnoDB AUTO_INCREMENT=15290 DEFAULT CHARSET=latin1
     63
     64CREATE TABLE `jobs_job` (
     65  `id` int(11) NOT NULL AUTO_INCREMENT,
     66  `state` varchar(1) NOT NULL,
     67  `start_date` datetime DEFAULT NULL,
     68  `end_date` datetime DEFAULT NULL,
     69  `job_group_id` int(11) NOT NULL,
     70  `store` varchar(40) NOT NULL,
     71  `payload` longtext NOT NULL,
     72  PRIMARY KEY (`id`),
     73  KEY `jobs_job_be96d149` (`job_group_id`),
     74  KEY `jobs_job_store_6681c0e7_uniq` (`store`),
     75  KEY `jobs_job_start_date_b8aefdc3_uniq` (`start_date`),
     76  KEY `jobs_job_state_6ec9b5f7_uniq` (`state`),
     77  CONSTRAINT `jobs_job_job_group_id_93d2fccf_fk_jobs_jobgroup_id` FOREIGN KEY (`job_group_id`) REFERENCES `jobs_jobgroup` (`id`)
     78) ENGINE=InnoDB AUTO_INCREMENT=3316872 DEFAULT CHARSET=latin1
     79}}}
     80 
Back to Top