Modify

Opened 4 years ago

Closed 4 years ago

#2150 closed Bug/Fehler (fixed)

Datanbank Manager führt ersten SQL-Befehl nach einem UPDATE SQL-Befehl nicht aus

Reported by: Torsten Riemer Owned by: somebody
Priority: hoch Milestone: modified-shop-2.0.7.0
Component: Admin Version: 2.0.6.0
Keywords: Cc:
Blocked By: Blocking:

Description

Aufgefallen ist der Fehler hier: BETA MODUL: CustomersNotice - Hinweise für Kunden

Zum Test kann eine SQL-Datei mit folgendem Inhalt erstellt und über den Datenbank Manager importiert werden:

-- Version 0.2.3

CREATE TABLE IF NOT EXISTS customers_notice (
  customers_notice_id int(10) unsigned NOT NULL AUTO_INCREMENT,
  status smallint(1) NOT NULL DEFAULT '0',
  position int(3) NOT NULL DEFAULT '1',
  startdate datetime DEFAULT '0000-00-00 00:00:00',
  enddate datetime DEFAULT '0000-00-00 00:00:00',
  template varchar(100) DEFAULT '',
  customers_status varchar(255) DEFAULT '',
  pages text,
  PRIMARY KEY (customers_notice_id)
);

CREATE TABLE IF NOT EXISTS customers_notice_description (
  customers_notice_id int(10) unsigned NOT NULL,
  languages_id int(10) unsigned NOT NULL,
  title varchar(255)DEFAULT NULL,
  description text,
  PRIMARY KEY (customers_notice_id, languages_id)
);

ALTER TABLE admin_access ADD customers_notice SMALLINT(1) NOT NULL DEFAULT 0;

UPDATE admin_access SET customers_notice = 1 WHERE customers_id = 1;

-- new for version 0.2.2, 01-2022, noRiddle
ALTER TABLE customers_notice ADD countries mediumtext DEFAULT NULL;

-- new for version 0.2.3, 01-2022, noRiddle
ALTER TABLE customers_notice ADD customers_id INT(11) DEFAULT NULL AFTER position;

Die Tabelle "customers_notice" wird nicht um die Spalte "countries" erweitert werden.

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 4 years ago

Resolution: fixed
Status: newclosed

In 13907:

fix #2150 - update DB manager

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.