Fixing the migration and creating the period table
Fixing the migration