mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
removed unnessesary creation of a table
This commit is contained in:
parent
db2ee7169f
commit
9db320ebff
1 changed files with 1 additions and 13 deletions
|
@ -107,24 +107,12 @@ CREATE TABLE `RezeptZutat` (
|
|||
`Zutat` int(11) NOT NULL
|
||||
);");
|
||||
|
||||
array_push($SQLStatements, "
|
||||
CREATE TABLE `ViewEinkauf` (
|
||||
`ID` int(11),
|
||||
`Anzahl` double,
|
||||
`Einheit` varchar(255),
|
||||
`Name` varchar(255),
|
||||
`Erledigt` tinyint(1)
|
||||
);");
|
||||
|
||||
array_push($SQLStatements, "
|
||||
CREATE TABLE `Zutat` (
|
||||
`ID` int(11) NOT NULL,
|
||||
`Name` varchar(255) NOT NULL
|
||||
);");
|
||||
|
||||
array_push($SQLStatements, "
|
||||
DROP TABLE IF EXISTS `ViewEinkauf`;");
|
||||
|
||||
array_push($SQLStatements, "
|
||||
CREATE VIEW `ViewEinkauf` AS select `Einkauf`.`ID` AS `ID`,`Einkauf`.`Anzahl` AS `Anzahl`,`Einheit`.`Name` AS `Einheit`,`Einkauf`.`Name` AS `Name`,`Einkauf`.`Erledigt` AS `Erledigt` from (`Einkauf` join `Einheit` on((`Einkauf`.`Einheit` = `Einheit`.`ID`))) ;");
|
||||
|
||||
|
|
Loading…
Reference in a new issue