Fix kysely imports in migrations
This commit is contained in:
parent
87264eeef1
commit
439dfca311
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(_db: Kysely<any>): Promise<void> {
|
export async function up(_db: Kysely<any>): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(_db: Kysely<any>): Promise<void> {
|
export async function up(_db: Kysely<any>): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(_db: Kysely<any>): Promise<void> {
|
export async function up(_db: Kysely<any>): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(_db: Kysely<any>): Promise<void> {
|
export async function up(_db: Kysely<any>): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema.dropTable('users').ifExists().execute();
|
await db.schema.dropTable('users').ifExists().execute();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema.dropIndex('idx_tags_tag').execute();
|
await db.schema.dropIndex('idx_tags_tag').execute();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema.alterTable('events').addColumn('deleted_at', 'integer').execute();
|
await db.schema.alterTable('events').addColumn('deleted_at', 'integer').execute();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema.createIndex('idx_author_stats_pubkey').on('author_stats').column('pubkey').execute();
|
await db.schema.createIndex('idx_author_stats_pubkey').on('author_stats').column('pubkey').execute();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
Loading…
Reference in New Issue