mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
* feat: add method for checking if event is expired * fix: tag length check * feat: add method for expiration check * feat: refactor event expiration * fix: remove stale comment * fix: remove unused method * fix: upsert/insert tests * fix: failing tests * feat: add tests for event expiration * feat: update test * feat: add nip 40 to supportedNips * chore: add expires_at column to events table * chore: use uint for expires_at --------- Co-authored-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema.alterTable('events', function (table) {
|
|
table.integer('expires_at').unsigned().nullable().index()
|
|
})
|
|
}
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.alterTable('events', function (table) {
|
|
table.dropColumn('expires_at')
|
|
})
|
|
}
|