diff --git a/doenet_docker/volumes/db_init/db_template.sql b/doenet_docker/volumes/db_init/db_template.sql index f70104ad39..503761c33f 100644 --- a/doenet_docker/volumes/db_init/db_template.sql +++ b/doenet_docker/volumes/db_init/db_template.sql @@ -7,7 +7,7 @@ # # Host: 127.0.0.1 (MySQL 8.0.32) # Database: doenet_local -# Generation Time: 2023-04-07 13:12:11 +0000 +# Generation Time: 2023-04-07 18:02:13 +0000 # ************************************************************ @@ -626,14 +626,15 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `link_pages`; CREATE TABLE `link_pages` ( - `courseId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `containingDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `parentDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `doenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `sourceCollectionDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `sourcePageDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, + `courseId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `containingDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `parentDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `doenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `sourceCollectionDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, + `sourcePageDoenetId` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `label` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, - `timeOfLastUpdate` datetime DEFAULT NULL + `timeOfLastUpdate` datetime DEFAULT NULL, + PRIMARY KEY (`doenetId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;