Commit 6db7c02c authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Allow migrate subcommand to use database names that contain dashes.

parent 9d2ff19d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
### Changed
- Improve Stackdriver log format timestamp and message field formats.
- Use crypto random to seed global random instance if possible.
- Allow migrate subcommand to use database names that contain dashes.

### Fixed
- Fix the registered function name for 'nk.channelIdBuild' in the JavaScript runtime.
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ func Parse(args []string, tmpLogger *zap.Logger) {
		if err != nil {
			logger.Fatal("Failed to open database", zap.Error(err))
		}
		if _, err = db.Exec(fmt.Sprintf("CREATE DATABASE %s", dbname)); err != nil {
		if _, err = db.Exec(fmt.Sprintf("CREATE DATABASE %q", dbname)); err != nil {
			db.Close()
			logger.Fatal("Failed to create database", zap.Error(err))
		}