Merged migrations into one big v1->v2 which is not incremental, thus it does not need code copy-pasting.

Some fixes.
This commit is contained in:
Tomas Bures 2018-08-02 17:05:57 +05:30
parent 32cad03f4f
commit b1c667d13d
24 changed files with 977 additions and 1044 deletions

View file

@ -97,14 +97,10 @@ async function create(context, entity) {
' `latest_open` timestamp NULL DEFAULT NULL,\n' +
' `latest_click` timestamp NULL DEFAULT NULL,\n' +
' `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n' +
' `first_name` varchar(255) DEFAULT NULL,\n' +
' `last_name` varchar(255) DEFAULT NULL,\n' +
' PRIMARY KEY (`id`),\n' +
' UNIQUE KEY `email` (`email`),\n' +
' UNIQUE KEY `cid` (`cid`),\n' +
' KEY `status` (`status`),\n' +
' KEY `first_name` (`first_name`(191)),\n' +
' KEY `last_name` (`last_name`(191)),\n' +
' KEY `subscriber_tz` (`tz`),\n' +
' KEY `is_test` (`is_test`),\n' +
' KEY `latest_open` (`latest_open`),\n' +