Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c9af85e

Browse files
committed
Change schema to enforce error
1 parent 525a9fa commit c9af85e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎tests/schema.sql‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ALTER TABLE `ak`
3030

3131

3232
CREATE TABLE `typemix` (
33-
`pid` intNOT NULL,
33+
`pid` int(11) unsigned NOT NULL AUTO_INCREMENT,
3434
`c_char5` char(5) NOT NULL,
3535
`c_varchar255` varchar(255) NOT NULL,
3636
`c_varchar25` varchar(25) DEFAULT NULL,
@@ -70,15 +70,10 @@ CREATE TABLE `typemix` (
7070
`c_json` json,
7171
`c_json_not_null` json NOT NULL,
7272
`c_decimal` decimal(12, 2),
73-
`c_decimal_not_null` decimal(12, 2) NOT NULL
73+
`c_decimal_not_null` decimal(12, 2) NOT NULL,
74+
PRIMARY KEY(`id`)
7475
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
7576

76-
ALTER TABLE `typemix`
77-
ADD PRIMARY KEY (`pid`);
78-
79-
ALTER TABLE `typemix`
80-
MODIFY `pid` int NOT NULL AUTO_INCREMENT;
81-
8277
CREATE TABLE `cmsdomain` (
8378
`id` int(11) NOT NULL,
8479
`cmsdomainid` int(11) NOT NULL,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /