Created
September 1, 2019 17:50
-
-
Save SamuelNata/109f000b3e33fe7be65f4c29b63f2ddc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL Workbench Forward Engineering | |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; | |
-- ----------------------------------------------------- | |
-- Schema test | |
-- ----------------------------------------------------- | |
DROP SCHEMA IF EXISTS `test` ; | |
-- ----------------------------------------------------- | |
-- Schema test | |
-- ----------------------------------------------------- | |
CREATE SCHEMA IF NOT EXISTS `test` DEFAULT CHARACTER SET latin1 ; | |
USE `test` ; | |
-- ----------------------------------------------------- | |
-- Table `a` | |
-- ----------------------------------------------------- | |
DROP TABLE IF EXISTS `a` ; | |
CREATE TABLE IF NOT EXISTS `a` ( | |
`id` INT(11) NOT NULL AUTO_INCREMENT, | |
`int` INT NOT NULL, | |
`int_nullable` INT NULL, | |
`big` BIGINT(20) NULL, | |
`int15` INT(15) NULL, | |
`varchar(45)` VARCHAR(45) NULL DEFAULT 'my default string', | |
`text` TEXT(10000) NULL, | |
`decimal` DECIMAL(10,5) NULL, | |
PRIMARY KEY (`id`)) | |
ENGINE = InnoDB | |
DEFAULT CHARACTER SET = latin1; | |
SET SQL_MODE=@OLD_SQL_MODE; | |
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; | |
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment