Skip to content

Commit

Permalink
added address_country column to students table
Browse files Browse the repository at this point in the history
  • Loading branch information
jessherlitz committed Aug 17, 2024
1 parent 731da35 commit 79e88b8
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { type Kysely } from 'kysely';

export async function up(db: Kysely<any>) {
await db.schema
.alterTable('students')
.addColumn('address_country', 'text')
.execute();
}

export async function down(db: Kysely<any>) {
await db.schema
.alterTable('students')
.dropColumn('address_country')
.execute();
}

0 comments on commit 79e88b8

Please sign in to comment.