Subir archivos a "mysqulito"

This commit is contained in:
2026-09-25 09:43:36 +02:00
parent 5c1fa24ebf
commit e081b831b4
+7 -7
View File
@@ -27,10 +27,10 @@ SET time_zone = "+00:00";
-- Table structure for table `respuestas` -- Table structure for table `respuestas`
-- --
CREATE TABLE `respuestas` ( CREATE TABLE `respuesta` (
`idRespuesta` int NOT NULL, `idRespuesta` int NOT NULL,
`idPregunta` int DEFAULT NULL, `idPregunta` int DEFAULT NULL,
`respuesta` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL, `nombreRespuesta` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`correcta` tinyint(1) DEFAULT NULL `correcta` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_spanish_ci;
@@ -38,7 +38,7 @@ CREATE TABLE `respuestas` (
-- Dumping data for table `respuestas` -- Dumping data for table `respuestas`
-- --
INSERT INTO `respuestas` (`idRespuesta`, `idPregunta`, `respuesta`, `correcta`) VALUES INSERT INTO `respuesta` (`idRespuesta`, `idPregunta`, `respuesta`, `correcta`) VALUES
(3355, 2140, '1492', 1), (3355, 2140, '1492', 1),
(3356, 2140, '1512', 0), (3356, 2140, '1512', 0),
(3357, 2140, '1453', 0), (3357, 2140, '1453', 0),
@@ -1627,7 +1627,7 @@ INSERT INTO `respuestas` (`idRespuesta`, `idPregunta`, `respuesta`, `correcta`)
-- --
-- Indexes for table `respuestas` -- Indexes for table `respuestas`
-- --
ALTER TABLE `respuestas` ALTER TABLE `respuesta`
ADD PRIMARY KEY (`idRespuesta`), ADD PRIMARY KEY (`idRespuesta`),
ADD KEY `idPregunta` (`idPregunta`); ADD KEY `idPregunta` (`idPregunta`);
@@ -1638,7 +1638,7 @@ ALTER TABLE `respuestas`
-- --
-- AUTO_INCREMENT for table `respuestas` -- AUTO_INCREMENT for table `respuestas`
-- --
ALTER TABLE `respuestas` ALTER TABLE `respuesta`
MODIFY `idRespuesta` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4935; MODIFY `idRespuesta` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4935;
-- --
@@ -1648,8 +1648,8 @@ ALTER TABLE `respuestas`
-- --
-- Constraints for table `respuestas` -- Constraints for table `respuestas`
-- --
ALTER TABLE `respuestas` ALTER TABLE `respuesta`
ADD CONSTRAINT `respuestas_ibfk_1` FOREIGN KEY (`idPregunta`) REFERENCES `preguntas` (`idPregunta`); ADD CONSTRAINT `respuesta_ibfk_1` FOREIGN KEY (`idPregunta`) REFERENCES `pregunta` (`idPregunta`);
COMMIT; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;