mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-10 16:14:03 +00:00
Bugfix in SQL script
This commit is contained in:
parent
f4b5012a08
commit
e58cd77cd7
1 changed files with 3 additions and 3 deletions
|
@ -3,13 +3,13 @@
|
||||||
`id` int(11) PRIMARY KEY auto_increment,
|
`id` int(11) PRIMARY KEY auto_increment,
|
||||||
`version` int(11) NOT NULL UNIQUE,
|
`version` int(11) NOT NULL UNIQUE,
|
||||||
`when` datetime NOT NULL
|
`when` datetime NOT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
|
||||||
|
|
||||||
--- alter learnprogress by one column
|
--- alter learnprogress by one column
|
||||||
ALTER TABLE `learnprogress` ADD `passed` int(11) NOT NULL DEFAULT '0';
|
ALTER TABLE `learnprogress` ADD `passed` int(11) NOT NULL DEFAULT '0';
|
||||||
|
|
||||||
--- update new column passed with -1
|
--- update new column passed with -1
|
||||||
UPDATE `learnprogress` SET `passed`=-1
|
UPDATE `learnprogress` SET `passed`=-1;
|
||||||
|
|
||||||
--- update schema version number
|
--- update schema version number
|
||||||
INSERT INTO `schema_version`
|
INSERT INTO `schema_version`
|
||||||
|
|
Loading…
Reference in a new issue