Skip to content

Commit efd35ff

Browse files
committed
- Prozeduren wurden möglicherweise nicht installiert
- Schreibfehler bei einem Tabellenbezeichner behoben
1 parent 283eaff commit efd35ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

DB/CControl/Sql/AddPlatform.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
2+
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
3+
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
4+
15
DROP PROCEDURE IF EXISTS `drop_index_if_exists`;
26
CREATE PROCEDURE `drop_index_if_exists` (in theTable varchar(128), in theIndexName varchar(128))
37
begin
@@ -102,10 +106,6 @@ begin
102106
select 1;
103107
end;
104108

105-
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
106-
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
107-
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
108-
109109
CREATE TABLE IF NOT EXISTS `Component` (
110110
`CO_id` INT NOT NULL AUTO_INCREMENT,
111111
`CO_name` VARCHAR(45) NOT NULL,
@@ -117,7 +117,7 @@ ENGINE = InnoDB
117117
AUTO_INCREMENT = 1;
118118

119119
call drop_index_if_exists('Component','CO_address_UNIQUE');
120-
ALTER TABLE `component` ADD UNIQUE(`CO_name` ASC);
120+
ALTER TABLE `Component` ADD UNIQUE(`CO_name` ASC);
121121
call execute_if_column_not_exists('Component','CO_def','ALTER TABLE `Component` ADD COLUMN CO_def VARCHAR(255) NOT NULL DEFAULT \'\';');
122122
call execute_if_column_not_exists('Component','CO_status','ALTER TABLE `Component` ADD COLUMN CO_status int NOT NULL DEFAULT 1;');
123123

0 commit comments

Comments
 (0)