Prettier
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {MigrationInterface, QueryRunner, Table} from "typeorm";
|
||||
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
|
||||
|
||||
const table = new Table({
|
||||
name: 'raw.github_repo',
|
||||
columns: [
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
|
||||
{ name: 'name', type: 'varchar', isPrimary: true },
|
||||
|
||||
{ name: 'created_at', type: 'numeric', isNullable: false },
|
||||
@@ -16,12 +16,11 @@ const table = new Table({
|
||||
{ name: 'forks', type: 'numeric', isNullable: false },
|
||||
{ name: 'open_issues', type: 'numeric', isNullable: false },
|
||||
{ name: 'network', type: 'numeric', isNullable: false },
|
||||
{ name: 'subscribers', type: 'numeric', isNullable: false }
|
||||
{ name: 'subscribers', type: 'numeric', isNullable: false },
|
||||
],
|
||||
});
|
||||
|
||||
export class CreateGithubRepo1552016339539 implements MigrationInterface {
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.createTable(table);
|
||||
}
|
||||
@@ -29,5 +28,4 @@ export class CreateGithubRepo1552016339539 implements MigrationInterface {
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropTable(table);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import {MigrationInterface, QueryRunner, Table} from "typeorm";
|
||||
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
|
||||
|
||||
const table = new Table({
|
||||
name: 'raw.github_pull_request',
|
||||
columns: [
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
|
||||
{ name: 'repo_name', type: 'varchar', isPrimary: true },
|
||||
{ name: 'pull_request_number', type: 'numeric', isPrimary: true },
|
||||
|
||||
@@ -15,12 +15,10 @@ const table = new Table({
|
||||
{ name: 'state', type: 'varchar', isNullable: false },
|
||||
{ name: 'title', type: 'varchar', isNullable: false },
|
||||
{ name: 'user_login', type: 'varchar', isNullable: false },
|
||||
|
||||
],
|
||||
});
|
||||
|
||||
export class CreateGithubPullRequest1552024155243 implements MigrationInterface {
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.createTable(table);
|
||||
}
|
||||
@@ -28,5 +26,4 @@ export class CreateGithubPullRequest1552024155243 implements MigrationInterface
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropTable(table);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import {MigrationInterface, QueryRunner, Table} from "typeorm";
|
||||
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
|
||||
|
||||
const table = new Table({
|
||||
name: 'raw.github_fork',
|
||||
columns: [
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
|
||||
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
|
||||
{ name: 'name', type: 'varchar', isPrimary: true },
|
||||
{ name: 'owner_login', type: 'varchar', isPrimary: true },
|
||||
|
||||
@@ -17,12 +17,11 @@ const table = new Table({
|
||||
{ name: 'forks', type: 'numeric', isNullable: false },
|
||||
{ name: 'open_issues', type: 'numeric', isNullable: false },
|
||||
{ name: 'network', type: 'numeric', isNullable: true },
|
||||
{ name: 'subscribers', type: 'numeric', isNullable: true }
|
||||
{ name: 'subscribers', type: 'numeric', isNullable: true },
|
||||
],
|
||||
});
|
||||
|
||||
export class CreateGithubFork1552044685566 implements MigrationInterface {
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.createTable(table);
|
||||
}
|
||||
@@ -30,5 +29,4 @@ export class CreateGithubFork1552044685566 implements MigrationInterface {
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropTable(table);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user