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> {
|
||||
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> {
|
||||
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> {
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Kysely } from '@/deps.ts';
|
||||
import { Kysely } from 'kysely';
|
||||
|
||||
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> {
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Kysely } from '@/deps.ts';
|
||||
import { Kysely } from 'kysely';
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
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> {
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Kysely } from '@/deps.ts';
|
||||
import { Kysely } from 'kysely';
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
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> {
|
||||
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> {
|
||||
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> {
|
||||
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> {
|
||||
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> {
|
||||
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> {
|
||||
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> {
|
||||
await db.schema
|
||||
|
|
Loading…
Reference in New Issue