Skip to content

Commit

Permalink
update: new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzuhui committed Nov 25, 2024
1 parent 26aaac2 commit c5357af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions migrate.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:20-alpine3.19
WORKDIR /
COPY . /
RUN npm ci --production
CMD npm run init && npm run migrate
FROM node:20-alpine3.19
WORKDIR /
COPY . /
RUN npm ci --production
CMD npm run init
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CREATE TABLE "CREDIT_PACKAGE" (
"id" serial PRIMARY KEY,
"name" varchar(50) NOT NULL,
"cover_url" varchar(2048),
"credit_amount" integer NOT NULL,
"price" numeric(10,2) NOT NULL,
"created_at" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP)
Expand Down

0 comments on commit c5357af

Please sign in to comment.