Commit 80b7b33c authored by Matthias Larisch's avatar Matthias Larisch Committed by Gitlab

Remove fs_autokennzeichen

Also removes references in fs_foodsaver.
parent dbe2cad3
......@@ -116,7 +116,7 @@ class PassgenControl extends Control
foreach ($foodsaver as $i => $fs_id)
{
if($fs = $this->model->qRow('SELECT `fs_id`,`photo`,`id`,`name`,`nachname`,`autokennzeichen_id`,`geschlecht`,`rolle` FROM '.PREFIX.'foodsaver WHERE `id` = '.(int)$fs_id.' '))
if($fs = $this->model->qRow('SELECT `fs_id`,`photo`,`id`,`name`,`nachname`,`geschlecht`,`rolle` FROM '.PREFIX.'foodsaver WHERE `id` = '.(int)$fs_id.' '))
{
if(empty($fs['photo']))
{
......
......@@ -69,7 +69,6 @@ class ProfileModel extends Model
if(($data = $this->qRow('
SELECT fs.`id`,
fs.`autokennzeichen_id`,
fs.`fs_id`,
fs.`bezirk_id`,
fs.`plz`,
......
......@@ -922,7 +922,6 @@ class ManualDb extends Db
$out = $this->qRow('
SELECT
`id`,
`autokennzeichen_id`,
`fs_id`,
`bezirk_id`,
`plz`,
......@@ -1663,7 +1662,6 @@ class ManualDb extends Db
$id = $this->insert('
INSERT INTO `'.PREFIX.'foodsaver`
(
`autokennzeichen_id`,
`bezirk_id`,
`plz`,
`email`,
......@@ -1678,7 +1676,6 @@ class ManualDb extends Db
)
VALUES
(
'.$this->intval($data['autokennzeichen_id']).',
'.$this->intval($data['bezirk_id']).',
'.$this->strval($data['plz']).',
'.$this->strval($data['email']).',
......@@ -2621,7 +2618,6 @@ class ManualDb extends Db
[land_anders_value] =>
[geb_datum] => 2013-08-22
[fs_id] => 4565
[autokennzeichen_id] => 13
[email] =>
[festnetz] =>
[handy] =>
......@@ -2715,7 +2711,6 @@ class ManualDb extends Db
`rolle`,
`active`,
`data`,
`autokennzeichen_id`,
`bezirk_id`,
`plz`,
`email`,
......@@ -2743,7 +2738,6 @@ class ManualDb extends Db
1,
0,
'.$this->strval(json_encode($data)).',
'.$this->intval($data['autokennzeichen_id']).',
'.$this->intval($data['bezirk_id']).',
'.$this->strval($data['plz']).',
'.$this->strval($data['email']).',
......
DROP TABLE fs_autokennzeichen;
ALTER TABLE fs_foodsaver DROP COLUMN autokennzeichen_id;
ALTER TABLE fs_foodsaver_archive DROP COLUMN autokennzeichen_id;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment