Subs union to server side
This commit is contained in:
parent
ed7c89476f
commit
ac4331edbd
10 changed files with 299 additions and 162 deletions
|
|
@ -13,7 +13,7 @@ Meteor.startup(() => {
|
|||
|
||||
Migrations.config({
|
||||
// Log job run details to console
|
||||
log: true
|
||||
log: Meteor.isProduction
|
||||
});
|
||||
|
||||
Migrations.add({
|
||||
|
|
@ -120,7 +120,7 @@ Meteor.startup(() => {
|
|||
Migrations.add({
|
||||
version: 8,
|
||||
up: function siteSettingsAddIndex() {
|
||||
SiteSettings._ensureIndex({ isPublic: 1 }, { unique: 1 });
|
||||
SiteSettings._ensureIndex({ isPublic: 1 });
|
||||
SiteSettings.find({ isPublic: null }).forEach((setting) => {
|
||||
SiteSettings.update({ _id: setting._id }, { $set: { isPublic: true } });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue