mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
refs https://github.com/TryGhost/Team/issues/1471 - This is a many-to-one relation so that many posts can be linked to a specific newsletter - The `newsletters` table had to come first in the schema file so that it's initialized before the `posts` table (because of the foreign key) - Updated the model to make sure the new field doesn't leak in the API for now - This migration isn't using the `createAddColumnMigration` util because of a performance issue. In MySQL, adding/dropping a column without `algorithm=copy` uses the INPLACE algorithm which was too slow on big posts tables (~3 minutes for 10k posts). Switching to the COPY algorithm fixed the issue (~3 seconds for 10k posts). - SQLite isn't using the codepath where we run a raw SQL query because `knex` is doing multiple queries to add/remove a column |
||
---|---|---|
.. | ||
1.3 | ||
1.4 | ||
1.5 | ||
1.7 | ||
1.9 | ||
1.13 | ||
1.18 | ||
1.19 | ||
1.20 | ||
1.21 | ||
1.22 | ||
1.25 | ||
2.0 | ||
2.2 | ||
2.3 | ||
2.6 | ||
2.8 | ||
2.13 | ||
2.14 | ||
2.15 | ||
2.16 | ||
2.17 | ||
2.18 | ||
2.21 | ||
2.22 | ||
2.27 | ||
2.28 | ||
2.29 | ||
2.31 | ||
2.32 | ||
2.33 | ||
2.34 | ||
2.35 | ||
2.37 | ||
3.0 | ||
3.1 | ||
3.2 | ||
3.6 | ||
3.7 | ||
3.8 | ||
3.9 | ||
3.11 | ||
3.12 | ||
3.18 | ||
3.19 | ||
3.22 | ||
3.23 | ||
3.24 | ||
3.25 | ||
3.26 | ||
3.29 | ||
3.30 | ||
3.32 | ||
3.33 | ||
3.34 | ||
3.35 | ||
3.36 | ||
3.37 | ||
3.38 | ||
3.39 | ||
3.40 | ||
3.41 | ||
4.0 | ||
4.1 | ||
4.2 | ||
4.3 | ||
4.4 | ||
4.5 | ||
4.6 | ||
4.7 | ||
4.8 | ||
4.9 | ||
4.11 | ||
4.12 | ||
4.13 | ||
4.14 | ||
4.15 | ||
4.16 | ||
4.17 | ||
4.19 | ||
4.20 | ||
4.22 | ||
4.23 | ||
4.33 | ||
4.34 | ||
4.35 | ||
4.36 | ||
4.37 | ||
4.38 | ||
4.39 | ||
4.40 | ||
4.42 | ||
4.43 |