' BEGIN; ALTER TABLE "product" ADD "id_product" bigserial NOT NULL, ADD "id_product_barcode" INT8, ADD "name" VARCHAR(200) NOT NULL, ADD "id_product_manufacturer" INTEGER NOT NULL, ADD "id_product_category" INTEGER NOT NULL, ADD "id_product_photo" INT8, ADD PRIMARY KEY ("id_product"); COMMIT; ', ); } /** * Get the SQL statements for the Down migration * * @return array list of the SQL strings to execute for the Down migration * the keys being the datasources */ public function getDownSQL() { return array ( 'default' => ' BEGIN; ALTER TABLE "product" DROP CONSTRAINT "product_pkey", DROP COLUMN "id_product", DROP COLUMN "id_product_barcode", DROP COLUMN "name", DROP COLUMN "id_product_manufacturer", DROP COLUMN "id_product_category", DROP COLUMN "id_product_photo"; COMMIT; ', ); } }