# Migration `20200922203756-fix-exponent-token`

This migration has been generated by Thierry at 9/22/2020, 4:37:56 PM.
You can check out the [state of the schema](./schema.prisma) after the migration.

## Database Steps

```sql
ALTER TABLE "public"."User" DROP COLUMN "expoNotificationTokens",
ADD COLUMN "expoNotificationTokens" text []  
```

## Changes

```diff
diff --git schema.prisma schema.prisma
migration 20200911192738-amenityId..20200922203756-fix-exponent-token
--- datamodel.dml
+++ datamodel.dml
@@ -3,9 +3,9 @@
 }
 datasource postgresql {
   provider = "postgresql"
-  url = "***"
+  url = "***"
 }
 enum RECURRING_TYPE {
   DAILY
@@ -989,9 +989,9 @@
   title                           String
   description                     String?
   managingCompanyId               String?
   managingCompany                 ManagingCompany?  @relation(fields: [managingCompanyId], references: [id])
-  managingCompanyRolesPermissions PERMISSION_TYPE[]
+  managingCompanyRolesPermissions PERMISSION_TYPE[] // NEED TO REMOVE THIS?!
   users                           User[]
   projects                        Project[]
 }
@@ -2424,11 +2424,11 @@
   createdTasks                             Task[]                           @relation("Task_createdByToUser")
   taskActivities                           TaskActivity[]
   others                                   User[]                           @relation("UserToUser_createdBy")
   chatNotificationTypes                    NOTIFICATION_DELIVERY_PLATFORM[]
-  expoNotificationTokens                   NOTIFICATION_DELIVERY_PLATFORM[]
   managerNotificationTypes                 NOTIFICATION_DELIVERY_PLATFORM[]
   orderNotificationTypes                   NOTIFICATION_DELIVERY_PLATFORM[]
+  expoNotificationTokens                   String[]
   accessKeys                               AccessKey[]                      @relation("AccessKeysOfUser")
   projectsActive                           Project[]                        @relation("ActiveUsersForProject")
   amenities                                Amenity[]
   posts_AudienceOfPost                     Post[]                           @relation("AudienceOfPost")
```


