2016-11-04 09:03:13 +01:00
|
|
|
'use strict';
|
|
|
|
|
2017-06-28 14:10:32 +02:00
|
|
|
exports.up = function(db, callback) {
|
|
|
|
db.runSql(
|
|
|
|
`
|
2016-12-06 11:44:58 +01:00
|
|
|
CREATE TABLE client_instances (
|
|
|
|
app_name varchar(255),
|
|
|
|
instance_id varchar(255),
|
|
|
|
client_ip varchar(255),
|
|
|
|
last_seen timestamp default now(),
|
|
|
|
created_at timestamp default now()
|
2017-06-28 14:10:32 +02:00
|
|
|
);`,
|
2020-04-14 22:29:11 +02:00
|
|
|
callback,
|
2017-06-28 14:10:32 +02:00
|
|
|
);
|
2016-12-06 11:44:58 +01:00
|
|
|
};
|
|
|
|
|
2017-06-28 14:10:32 +02:00
|
|
|
exports.down = function(db, callback) {
|
2016-12-06 11:44:58 +01:00
|
|
|
db.runSql('DROP TABLE client_instances;', callback);
|
|
|
|
};
|