Bug 19166: Remove 'IF NOT EXISTS' in kohastructure

The table is removed just before, this clause is useless.

It also fixes a test:
t/db_dependent/Creators/Lib.t .. 1/645
  #   Failed test 'get_table_names return all tables matching'
  #   at t/db_dependent/Creators/Lib.t line 1258.
  #     Structures begin differing at:
  #          $got->[10] = 'aqinvoice_adjustments'
  #     $expected->[10] = 'aqinvoices'
  # Looks like you failed 1 test of 645.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2018-07-31 08:30:53 -03:00 committed by Tomas Cohen Arazi
parent 4d45bd5755
commit a5492ce96b

View file

@ -3147,7 +3147,7 @@ CREATE TABLE aqinvoices (
--
DROP TABLE IF EXISTS aqinvoice_adjustments;
CREATE TABLE IF NOT EXISTS aqinvoice_adjustments (
CREATE TABLE aqinvoice_adjustments (
adjustment_id int(11) NOT NULL AUTO_INCREMENT, -- primary key for adjustments
invoiceid int(11) NOT NULL, -- foreign key to link an adjustment to an invoice
adjustment decimal(28,6), -- amount of adjustment