Skip to content

Commit 9d84cae

Browse files
committed
fix mysql charset and lets in setup. fixes #65
1 parent acc5e82 commit 9d84cae

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

setup/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ require('dotenv').load();
109109
// warning: nested prompts not supported yet https://github.com/flatiron/prompt/issues/47
110110
var unbuildVars = function () {
111111
var overrides = {};
112-
let prop;
112+
var prop;
113113

114114
for (prop in schema.properties) {
115-
let p = schema.properties[prop];
115+
var p = schema.properties[prop];
116116

117117
if (p.properties) {
118118
overrides[prop] = {};
119-
let nestedProp;
119+
var nestedProp;
120120

121121
for (nestedProp in p.properties) {
122122
overrides[prop][nestedProp] = process.env[prop.toUpperCase() + '_' + nestedProp.toUpperCase()];

setup/sql/create_comments.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ CREATE TABLE IF NOT EXISTS `comments` (
99
`published` datetime NOT NULL,
1010
PRIMARY KEY (`id`),
1111
KEY `pageID` (`pageID`)
12-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;
12+
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;

setup/sql/create_pages.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ CREATE TABLE IF NOT EXISTS `pages` (
2121
KEY `updated` (`updated`),
2222
KEY `author` (`author`),
2323
KEY `visible` (`visible`)
24-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;
24+
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;

setup/sql/create_tests.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ CREATE TABLE IF NOT EXISTS `tests` (
66
`defer` enum('y','n') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'n',
77
PRIMARY KEY (`testID`),
88
KEY `pageID` (`pageID`)
9-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;
9+
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=0;

0 commit comments

Comments
 (0)