mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
Reverts switching to TS for migrations (#99)
This commit is contained in:
parent
f55fa37691
commit
f833de916b
3 changed files with 4 additions and 9 deletions
|
@ -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) {
|
||||
|
||||
}
|
||||
|
|
|
@ -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()
|
|
@ -15,7 +15,6 @@ const migrationConfig = {
|
|||
directory: './db/migrations',
|
||||
tableName: 'migrations',
|
||||
stub: './db/migration.stub',
|
||||
extension: 'ts',
|
||||
}
|
||||
|
||||
const name = process.argv[2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue