Skip to content

Commit

Permalink
fix .env sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofyan Hadi Ahmad committed Apr 23, 2019
1 parent ad40b0b commit 496356e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TYPEORM_DATABASE=magishift
TYPEORM_PORT=5423
TYPEORM_LOGGING=true
TYPEORM_ENTITIES=src/**/*.entity.ts,example/**/*.entity.ts,modules/**/*.entity.ts
TYPEORM_MIGRATIONS=migrations/*.ts
TYPEORM_MIGRATIONS_DIR=migrations

MAGISHIFT_REDIS_HOST=localhost
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {MigrationInterface, QueryRunner} from "typeorm";

export class PostRefactoring1555990389622 implements MigrationInterface {
export class PostRefactoring1555991592924 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query(`CREATE TABLE "file_storage" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "__meta" text, "isDeleted" boolean NOT NULL DEFAULT false, "ownerId" character varying NOT NULL, "url" character varying NOT NULL, "object" character varying NOT NULL, "type" character varying NOT NULL, "meta" text NOT NULL DEFAULT '{}', "permissions" text NOT NULL DEFAULT '["public"]', "storage" character varying NOT NULL DEFAULT 'local', "dataStatus" character varying NOT NULL DEFAULT 'submitted', CONSTRAINT "UQ_f7ccb9ca8a5735d3750519f38c1" UNIQUE ("url"), CONSTRAINT "PK_2834b5398654dd125afabfd0dc2" PRIMARY KEY ("id"))`);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"start": "nodemon",
"docker": "docker-compose up",
"docker:down": "docker-compose down",
"migration:generate": "ts-node ./node_modules/.bin/typeorm migration:generate -n",
"migration:run": "ts-node ./node_modules/.bin/typeorm migration:run",
"migration:revert": "ts-node ./node_modules/.bin/typeorm migration:revert",
"migration:generate": "ts-node ./node_modules/typeorm/cli.js migration:generate -n",
"migration:run": "ts-node ./node_modules/typeorm/cli.js migration:run",
"migration:revert": "ts-node ./node_modules/typeorm/cli.js migration:revert",
"lint": "tslint src/**/*.ts{,x}",
"lint:fix": "tslint --fix src/**/*.ts{,x}",
"build": "rm -rf dist && tsc --p tsconfig.json -d && copyfiles -u -f -V src/**/*.graphql src/**/**/*.graphql dist",
Expand Down

0 comments on commit 496356e

Please sign in to comment.