2017-03-07 00:47:08 +01:00
|
|
|
'use strict';
|
|
|
|
|
2017-06-28 14:10:32 +02:00
|
|
|
exports.up = function(db, callback) {
|
|
|
|
db.runSql(
|
|
|
|
`
|
2017-03-07 00:47:08 +01:00
|
|
|
ALTER TABLE events ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE features ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE strategies ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_applications ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_applications ALTER COLUMN updated_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_applications ALTER COLUMN seen_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_instances ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_instances ALTER COLUMN last_seen TYPE TIMESTAMP WITH TIME ZONE;
|
|
|
|
ALTER TABLE client_metrics ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE;
|
2017-06-28 14:10:32 +02:00
|
|
|
`,
|
|
|
|
callback
|
|
|
|
);
|
2017-03-07 00:47:08 +01:00
|
|
|
};
|
|
|
|
|
2017-06-28 14:10:32 +02:00
|
|
|
exports.down = function(db, callback) {
|
2017-03-07 00:47:08 +01:00
|
|
|
callback();
|
|
|
|
};
|