-- phpMyAdmin SQL Dump -- version 3.1.3.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 10-09-2009 a las 13:43:00 -- Versión del servidor: 5.1.33 -- Versión de PHP: 5.2.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de datos: `testdata` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `test1` -- CREATE TABLE IF NOT EXISTS `test1` ( `test_id` int(11) NOT NULL AUTO_INCREMENT, `test_boolean` tinyint(1) NOT NULL DEFAULT '1', `txt_boolean2` tinyint(1) NOT NULL DEFAULT '0', `test2_id` int(11) NOT NULL, PRIMARY KEY (`test_id`), KEY `test1_test2` (`test_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `test1` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `test2` -- CREATE TABLE IF NOT EXISTS `test2` ( `id_test_2` int(11) NOT NULL AUTO_INCREMENT, `test2_boolean` tinyint(1) NOT NULL DEFAULT '1', `test2_description` varchar(45) NOT NULL DEFAULT 'add a description', PRIMARY KEY (`id_test_2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `test2` -- -- -- Filtros para las tablas descargadas (dump) -- -- -- Filtros para la tabla `test1` -- ALTER TABLE `test1` ADD CONSTRAINT `test1_test2` FOREIGN KEY (`test_id`) REFERENCES `test2` (`id_test_2`) ON DELETE NO ACTION ON UPDATE NO ACTION;