diff --git a/prisma/migrations/20210918183212_removed_default_value_of_data_source/migration.sql b/prisma/migrations/20210918183212_removed_default_value_of_data_source/migration.sql new file mode 100644 index 000000000..3fa6e2942 --- /dev/null +++ b/prisma/migrations/20210918183212_removed_default_value_of_data_source/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "MarketData" ALTER COLUMN "dataSource" DROP DEFAULT; + +-- AlterTable +ALTER TABLE "Order" ALTER COLUMN "dataSource" DROP DEFAULT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8cff7862c..10f27e8ef 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -62,7 +62,7 @@ model AuthDevice { model MarketData { createdAt DateTime @default(now()) - dataSource DataSource @default(YAHOO) + dataSource DataSource date DateTime id String @default(uuid()) symbol String @@ -78,7 +78,7 @@ model Order { accountUserId String? createdAt DateTime @default(now()) currency Currency? - dataSource DataSource @default(YAHOO) + dataSource DataSource date DateTime fee Float id String @default(uuid())