-- Deploy gaia:api_2016_10_25_add_get_ponits_can_refund to mysql

BEGIN;

CREATE TABLE `api_orderextra` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `order_id` varchar(12) NOT NULL UNIQUE,
    `get_points` INTEGER NOT NULL,
    `can_refund` bool NOT NULL
)
;
ALTER TABLE `api_orderextra` ADD CONSTRAINT `order_id_refs_id_4bddb0af` FOREIGN KEY (`order_id`) REFERENCES `api_order` (`id`);

COMMIT;

