rwx-yxu / inventory

Inventory application that uses openfaas to deploy an api backend and vuejs front end.
0 stars 0 forks source link

Handlers - Inventory list #13

Closed rwx-yxu closed 2 years ago

rwx-yxu commented 2 years ago

Contains the initial handler functions for an inventory list object. Supported methods added:

rwx-yxu commented 2 years ago

I just noticed that I'll need to add a new migration file to change the column types for the created at and updated dates to set them to big int and not null. Since the migration tool will not pick up these changes in terms of versioning in the database.

rwx-yxu commented 2 years ago

Failing again. I noticed a error in the initial migration... The created_at column for inventory list is mapped to the 'NULL' constraint which is most likely why it is not able to change. I can either drop the column and remake or remove that constraint some how.

rwx-yxu commented 2 years ago

I am going to to just drop and remake the column. Should be fine for now since the there isn't much data at all at this moment in time.

rwx-yxu commented 2 years ago

I made the migrate down file the same because the reverse step will fail if it tried to set the big int type to timestamp. Not too big of a deal since the first downstep is to drop the tables anyways.