Ghost/core/server/data/migrations/versions
Hannah Wolfe 22e13acd65 Updated var declarations to const/let and no lists
- All var declarations are now const or let as per ES6
- All comma-separated lists / chained declarations are now one declaration per line
- This is for clarity/readability but also made running the var-to-const/let switch smoother
- ESLint rules updated to match

How this was done:

- npm install -g jscodeshift
- git clone https://github.com/cpojer/js-codemod.git
- git clone git@github.com:TryGhost/Ghost.git shallow-ghost
- cd shallow-ghost
- jscodeshift -t ../js-codemod/transforms/unchain-variables.js . -v=2
- jscodeshift -t ../js-codemod/transforms/no-vars.js . -v=2
- yarn
- yarn test
- yarn lint / fix various lint errors (almost all indent) by opening files and saving in vscode
- grunt test-regression
- sorted!
2020-04-29 16:51:13 +01:00
..
1.3 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.4 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.5 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.7 Removed all clients and client_trusted_domains related code 2019-09-12 15:09:49 +01:00
1.9 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.13 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.18 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.19 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.20 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.21 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.22 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
1.25 Update dependency @tryghost/kg-markdown-html-renderer to v2.0.0 2020-04-09 21:10:03 +01:00
2.0 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
2.2 Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
2.3 Added edit webhook route to v2 Admin API (#10033) 2018-10-19 18:35:55 +01:00
2.6 Added migration for webhook permissions_roles fixtures (#10153) 2018-11-13 14:35:37 +05:30
2.8 Added members related db changes and models 2018-12-11 11:53:55 +07:00
2.13 💡Reverted "empty-string to NULL" db migration (#10430) 2019-01-29 14:41:04 +00:00
2.14 Added permissions for actions including migration 2019-02-06 18:59:09 +01:00
2.15 Added migration to insert builtin Zapier integration (#10500) 2019-02-15 14:48:21 +00:00
2.16 Removed 2.16 member permission migration 2019-05-02 17:31:38 +02:00
2.17 Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
2.18 Enhanced 2.18 detection (#10610) 2019-03-13 23:40:50 +01:00
2.21 Added notification access persmission for users of Editor role 2019-04-18 13:02:23 +02:00
2.22 Copied member permission migration from 2.16->2.22 2019-05-02 17:31:38 +02:00
2.27 Updated post model queries to raw knex queries (#11246) 2019-10-17 10:36:18 +05:30
2.28 Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
2.29 🐛 Fixed migration path from pre 2.28.x to 3.0.0 (#11268) 2019-10-28 12:02:16 +01:00
2.31 Removed name and password columns from members table 2019-09-05 11:14:50 +08:00
2.32 🐛 Fixed error when during migration to 2.32.0 on mysql (#11208) 2019-10-08 11:07:29 +01:00
2.33 🐛 Fixed error when during migration to 2.32.0 on mysql (#11208) 2019-10-08 11:07:29 +01:00
2.34 Moved migrations from 3.0 to 2.34 2019-10-09 16:24:51 +07:00
2.35 Added migration for note column on members table 2019-10-10 17:51:46 +07:00
2.37 Added new member subscription settings (#11240) 2019-10-14 16:58:15 +05:30
3.0 Switched to extracted @tryghost/mobiledoc-dom-renderer package 2020-04-08 18:27:12 +01:00
3.1 Added email.error_data column migration 2019-11-22 16:44:10 +00:00
3.2 Added member's subscription cancellation helper {{cancel_link}} (#11434) 2019-12-12 19:59:15 +07:00
3.6 Added labels for Members (#11538) 2020-02-14 15:03:10 +05:30
3.7 🐛 Fixed "Unable to update nested relation" error when adding labels to members 2020-02-18 09:08:28 +00:00
3.8 Added migration to add members.geolocation 2020-02-22 10:12:06 +00:00
3.9 Added member login resource to Admin API (#11607) 2020-02-27 11:48:02 +08:00
3.11 Cleaned up broken complimentary plan (#11650) 2020-03-10 20:39:34 +08:00
3.12 Renamed migration in 3.12 to follow numerical sequence 2020-03-23 10:39:09 +08:00