-- Deploy gaia:2019_07_07_add_table_user_old_new to mysql

BEGIN;

-- XXX Add DDLs here.

CREATE TABLE `api_usernewold` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `user_id` integer NOT NULL UNIQUE,
    `is_new` bool NOT NULL
)
;
ALTER TABLE `api_usernewold` ADD CONSTRAINT `user_id_refs_id_bec6b347` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);

COMMIT;
