picture-processor-cljs/migrations/20160114114150-images.js

20 lines
420 B
JavaScript
Raw Normal View History

2016-01-14 12:07:24 +00:00
var dbm = global.dbm || require('db-migrate');
var type = dbm.dataType;
exports.up = function(db, callback) {
db.createTable('images', {
id: {type: 'int', primaryKey: true},
path: 'string',
name: 'string',
width: 'int',
height: 'int',
type: 'string',
createdAt: 'int',
updatedAt: 'int'
}, callback);
};
exports.down = function(db, callback) {
db.dropTable('images', callback);
};