Merge pull request #18665 from edx/jibsheet/reset-db-cache

Recreate caches because we rolled back a migration that was added
This commit is contained in:
Kevin Falcone
2018-08-08 13:57:04 -04:00
committed by GitHub
6 changed files with 56 additions and 51 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
b28d5405ce2ffb838559cd5e0664bb9e742ad03d

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -343,7 +343,7 @@ CREATE TABLE `auth_permission` (
PRIMARY KEY (`id`),
UNIQUE KEY `content_type_id` (`content_type_id`,`codename`),
CONSTRAINT `auth__content_type_id_508cf46651277a81_fk_django_content_type_id` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1104 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=1107 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `auth_registration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
@@ -2092,7 +2092,7 @@ CREATE TABLE `django_content_type` (
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_45f3b1d93ec8c61c_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=367 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=368 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `django_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
@@ -2103,7 +2103,7 @@ CREATE TABLE `django_migrations` (
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=472 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=473 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `django_openid_auth_association`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
@@ -3504,30 +3504,25 @@ DROP TABLE IF EXISTS `oauth2_provider_accesstoken`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth2_provider_accesstoken` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL AUTO_INCREMENT,
`token` varchar(255) NOT NULL,
`expires` datetime(6) NOT NULL,
`scope` longtext NOT NULL,
`application_id` bigint(20) DEFAULT NULL,
`application_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`updated` datetime(6) NOT NULL,
`source_refresh_token_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `oauth2_provider_accesstoken_token_3f77f86fb4ecbe0f_uniq` (`token`),
UNIQUE KEY `source_refresh_token_id` (`source_refresh_token_id`),
KEY `D5ac3019ee1c474fd85718b015e3d3a1` (`application_id`),
KEY `oauth2_provider_accesst_user_id_5e2f004fdebea22d_fk_auth_user_id` (`user_id`),
CONSTRAINT `oauth2_provider_acce_source_refresh_token_e66fbc72_fk_oauth2_pr` FOREIGN KEY (`source_refresh_token_id`) REFERENCES `oauth2_provider_refreshtoken` (`id`),
CONSTRAINT `oauth2_provider_accesstoken_application_id_b22886e1_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_accesstoken_user_id_6e4c9a65_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
CONSTRAINT `D5ac3019ee1c474fd85718b015e3d3a1` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_accesstoken_user_id_6e4c9a65_fk` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth2_provider_application`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth2_provider_application` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` varchar(100) NOT NULL,
`redirect_uris` longtext NOT NULL,
`client_type` varchar(32) NOT NULL,
@@ -3536,8 +3531,6 @@ CREATE TABLE `oauth2_provider_application` (
`name` varchar(255) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`skip_authorization` tinyint(1) NOT NULL,
`created` datetime(6) NOT NULL,
`updated` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `client_id` (`client_id`),
KEY `oauth2_provider_application_9d667c2b` (`client_secret`),
@@ -3549,43 +3542,38 @@ DROP TABLE IF EXISTS `oauth2_provider_grant`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth2_provider_grant` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`expires` datetime(6) NOT NULL,
`redirect_uri` varchar(255) NOT NULL,
`scope` longtext NOT NULL,
`application_id` bigint(20) NOT NULL,
`application_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`created` datetime(6) NOT NULL,
`updated` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `oauth2_provider_grant_code_a5c88732687483b_uniq` (`code`),
KEY `D6b2a4f1402d4f338b690c38b795830a` (`application_id`),
KEY `oauth2_provider_grant_user_id_3111344894d452da_fk_auth_user_id` (`user_id`),
CONSTRAINT `oauth2_provider_grant_application_id_81923564_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_grant_user_id_e8f62af8_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
CONSTRAINT `D6b2a4f1402d4f338b690c38b795830a` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_grant_user_id_e8f62af8_fk` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth2_provider_refreshtoken`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth2_provider_refreshtoken` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL AUTO_INCREMENT,
`token` varchar(255) NOT NULL,
`access_token_id` bigint(20) DEFAULT NULL,
`application_id` bigint(20) NOT NULL,
`access_token_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`created` datetime(6) NOT NULL,
`updated` datetime(6) NOT NULL,
`revoked` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `access_token_id` (`access_token_id`),
UNIQUE KEY `oauth2_provider_refreshtoken_token_revoked_af8a5134_uniq` (`token`,`revoked`),
UNIQUE KEY `oauth2_provider_refreshtoken_token_1e4e9388e6a22527_uniq` (`token`),
KEY `d3e264ceec355cabed6ff9976fc42a06` (`application_id`),
KEY `oauth2_provider_refresh_user_id_3f695b639cfbc9a3_fk_auth_user_id` (`user_id`),
CONSTRAINT `oauth2_provider_refr_access_token_id_775e84e8_fk_oauth2_pr` FOREIGN KEY (`access_token_id`) REFERENCES `oauth2_provider_accesstoken` (`id`),
CONSTRAINT `oauth2_provider_refreshtoken_application_id_2d1c311b_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_refreshtoken_user_id_da837fce_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
CONSTRAINT `b58d9cb3b93afb36b11b7741bf1bcc1a` FOREIGN KEY (`access_token_id`) REFERENCES `oauth2_provider_accesstoken` (`id`),
CONSTRAINT `d3e264ceec355cabed6ff9976fc42a06` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth2_provider_refreshtoken_user_id_da837fce_fk` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth2_provider_trustedclient`;
@@ -3624,10 +3612,10 @@ DROP TABLE IF EXISTS `oauth_dispatch_applicationaccess`;
CREATE TABLE `oauth_dispatch_applicationaccess` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`scopes` varchar(825) NOT NULL,
`application_id` bigint(20) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `application_id` (`application_id`),
CONSTRAINT `oauth_dispatch_applicationaccess_application_id_dcddee6e_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
CONSTRAINT `oauth_dispatch_appli_application_id_dcddee6e_fk_oauth2_pr` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth_dispatch_applicationorganization`;
@@ -3636,13 +3624,13 @@ DROP TABLE IF EXISTS `oauth_dispatch_applicationorganization`;
CREATE TABLE `oauth_dispatch_applicationorganization` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relation_type` varchar(32) NOT NULL,
`application_id` bigint(20) NOT NULL,
`application_id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `oauth_dispatch_applicati_application_id_relation__1b4017f2_uniq` (`application_id`,`relation_type`,`organization_id`),
KEY `oauth_dispatch_appli_organization_id_fe63a7f2_fk_organizat` (`organization_id`),
CONSTRAINT `oauth_dispatch_appli_organization_id_fe63a7f2_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`),
CONSTRAINT `oauth_dispatch_applicatio_application_id_dea619c6_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
CONSTRAINT `oauth_dispatch_appli_application_id_dea619c6_fk_oauth2_pr` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
CONSTRAINT `oauth_dispatch_appli_organization_id_fe63a7f2_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth_dispatch_restrictedapplication`;
@@ -3650,10 +3638,10 @@ DROP TABLE IF EXISTS `oauth_dispatch_restrictedapplication`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_dispatch_restrictedapplication` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`application_id` bigint(20) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `d0faf25b802e0044a322123f797a61c7` (`application_id`),
CONSTRAINT `oauth_dispatch_restrictedapplication_application_id_6b8d0930_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
CONSTRAINT `d0faf25b802e0044a322123f797a61c7` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `oauth_provider_consumer`;
@@ -6174,6 +6162,24 @@ CREATE TABLE `workflow_assessmentworkflowstep` (
CONSTRAINT `w_workflow_id_4939c36cf6220ba3_fk_workflow_assessmentworkflow_id` FOREIGN KEY (`workflow_id`) REFERENCES `workflow_assessmentworkflow` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `xapi_xapilrsconfiguration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xapi_xapilrsconfiguration` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`version` varchar(16) NOT NULL,
`endpoint` varchar(200) NOT NULL,
`key` varchar(255) NOT NULL,
`secret` varchar(255) NOT NULL,
`active` tinyint(1) NOT NULL,
`enterprise_customer_id` char(32) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
CONSTRAINT `xapi_xapilrsconfigur_enterprise_customer__90c03ad5_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `xblock_config_courseeditltifieldsenabledflag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

View File

@@ -35,7 +35,7 @@ CREATE TABLE `django_migrations` (
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=472 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=473 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;