-
Notifications
You must be signed in to change notification settings - Fork 9
dates fix #3993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
dates fix #3993
Changes from all commits
5dd5abd
fff9eb4
939be7c
d383c25
d7ac095
c8ef784
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| -- AlterTable: Change date-only fields from timestamp to date type | ||
| -- PostgreSQL truncates the time portion automatically when casting timestamp to date | ||
|
|
||
| ALTER TABLE "Activation_CR" ALTER COLUMN "startDate" SET DATA TYPE date; | ||
| ALTER TABLE "Work_Package" ALTER COLUMN "startDate" SET DATA TYPE date; | ||
| ALTER TABLE "Task" ALTER COLUMN "deadline" SET DATA TYPE date; | ||
| ALTER TABLE "Task" ALTER COLUMN "startDate" SET DATA TYPE date; | ||
| ALTER TABLE "Reimbursement_Request" ALTER COLUMN "dateOfExpense" SET DATA TYPE date; | ||
| ALTER TABLE "Reimbursement_Request" ALTER COLUMN "dateDelivered" SET DATA TYPE date; | ||
| ALTER TABLE "Sponsor" ALTER COLUMN "joinDate" SET DATA TYPE date; | ||
| ALTER TABLE "Sponsor_Task" ALTER COLUMN "dueDate" SET DATA TYPE date; | ||
| ALTER TABLE "Sponsor_Task" ALTER COLUMN "notifyDate" SET DATA TYPE date; | ||
| ALTER TABLE "Availability" ALTER COLUMN "dateSet" SET DATA TYPE date; | ||
| ALTER TABLE "Milestone" ALTER COLUMN "dateOfEvent" SET DATA TYPE date; | ||
| ALTER TABLE "Graph" ALTER COLUMN "startDate" SET DATA TYPE date; | ||
| ALTER TABLE "Graph" ALTER COLUMN "endDate" SET DATA TYPE date; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,7 +31,7 @@ import ProjectsService from '../services/projects.services.js'; | |||||
| import { Decimal } from 'decimal.js'; | ||||||
| import BillOfMaterialsService from '../services/boms.services.js'; | ||||||
| import UsersService from '../services/users.services.js'; | ||||||
| import { transformDate } from '../utils/datetime.utils.js'; | ||||||
| import { toDateString } from 'shared'; | ||||||
| import { writeFileSync, readFileSync } from 'fs'; | ||||||
| import WbsElementTemplatesService from '../services/wbs-element-templates.services.js'; | ||||||
| import RecruitmentServices from '../services/recruitment.services.js'; | ||||||
|
|
@@ -1137,7 +1137,7 @@ const performSeed: () => Promise<void> = async () => { | |||||
| 'Bodywork Concept of Design', | ||||||
| changeRequestProject1Id, | ||||||
| WorkPackageStage.Design, | ||||||
| weeksAgo(12).toISOString().split('T')[0], | ||||||
| toDateString(weeksAgo(12)), | ||||||
|
||||||
| toDateString(weeksAgo(12)), | |
| weeksAgo(12).toISOString().split('T')[0], |
Uh oh!
There was an error while loading. Please reload this page.