ifms-pti/server/prisma/migrations/20201107124332-init/README.md
2020-11-07 09:14:23 -04:00

870 B

Migration 20201107124332-init

This migration has been generated by Douglas Barone at 11/7/2020, 8:43:32 AM. You can check out the state of the schema after the migration.

Database Steps

ALTER TABLE "public"."WifiDevice" ALTER COLUMN "mac" SET NOT NULL

Changes

diff --git schema.prisma schema.prisma
migration 20201107123940-init..20201107124332-init
--- datamodel.dml
+++ datamodel.dml
@@ -3,9 +3,9 @@
 }
 datasource db {
   provider = "postgresql"
-  url = "***"
+  url = "***"
 }
 model ResetToken {
   id         Int       @id @default(autoincrement())
@@ -73,9 +73,9 @@
 model WifiDevice {
   id        Int      @id @default(autoincrement())
   oui       String?
-  mac       String?  @unique
+  mac       String   @unique
   hostname  String?
   firstSeen String?
   lastSeen  String?
   essid     String?