mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
16 lines
305 B
TypeScript
16 lines
305 B
TypeScript
import { BaseSchema } from '@adonisjs/lucid/schema';
|
|
|
|
export default class extends BaseSchema {
|
|
protected tableName = 'users';
|
|
|
|
async up() {
|
|
this.schema.alterTable(this.tableName, (table) => {
|
|
table.timestamp('last_seen_at');
|
|
});
|
|
}
|
|
|
|
async down() {
|
|
this.schema.dropTable(this.tableName);
|
|
}
|
|
}
|