Reverts switching to TS for migrations (#99)

This commit is contained in:
Chris Anderson 2023-03-27 08:50:21 -05:00 committed by GitHub
parent f55fa37691
commit f833de916b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View file

@ -1,9 +1,7 @@
import type { Knex } from 'knex'
exports.up = async function(knex: Knex) {
exports.up = async function(knex) {
}
exports.down = async function(knex: Knex) {
exports.down = async function(knex) {
}

View file

@ -1,6 +1,4 @@
import type { Knex } from 'knex'
exports.up = async function(knex: Knex) {
exports.up = async function(knex) {
await knex.schema
.alterTable('providers', function(table) {
table.dropIndex('external_id')
@ -8,7 +6,7 @@ exports.up = async function(knex: Knex) {
})
}
exports.down = async function(knex: Knex) {
exports.down = async function(knex) {
await knex.schema
.alterTable('providers', function(table) {
table.string('external_id').index()

View file

@ -15,7 +15,6 @@ const migrationConfig = {
directory: './db/migrations',
tableName: 'migrations',
stub: './db/migration.stub',
extension: 'ts',
}
const name = process.argv[2]