git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Built motion from commit 1333b3551.|1.0.38
[motion.git]
/
server
/
migrations
/
20160419172859-sms_room.js
1
'use strict';
2
3
module.exports = {
4
up: function(queryInterface, Sequelize) {
5
queryInterface.changeColumn(
6
'sms_rooms',
7
'from', {
8
type: Sequelize.STRING,
9
allowNull: false,
10
validate: {
11
is: /^[0-9]+$/
12
}
13
}
14
);
15
},
16
17
down: function(queryInterface, Sequelize) {
18
queryInterface.changeColumn(
19
'sms_rooms',
20
'from', Sequelize.INTEGER
21
);
22
}
23
};