feat: add owner index to subdomains table (#1331)

* feat: add owner index to subdomains table

* chore: move to separate migration
This commit is contained in:
Rafael Cárdenas
2022-09-22 11:32:02 -05:00
committed by GitHub
parent 35dddd319f
commit a6c5e12faa

View File

@@ -0,0 +1,8 @@
/* eslint-disable @typescript-eslint/camelcase */
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate';
export const shorthands: ColumnDefinitions | undefined = undefined;
export async function up(pgm: MigrationBuilder): Promise<void> {
pgm.createIndex('subdomains', 'owner');
}