mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix kysely imports in migrations
This commit is contained in:
parent
87264eeef1
commit
439dfca311
15 changed files with 15 additions and 15 deletions
|
|
@ -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…
Add table
Reference in a new issue