14 lines
530 B
Bash
14 lines
530 B
Bash
#!/bin/bash
|
|
# Script to revert all table and column name changes back to motmadminsettings
|
|
|
|
echo "This script will help you revert the table name changes."
|
|
echo "The issue is that production uses 'motmadminsettings' with camelCase columns,"
|
|
echo "but I changed everything to 'admin_settings' with snake_case columns."
|
|
echo ""
|
|
echo "You have two options:"
|
|
echo "1. Revert the code to use motmadminsettings (old table)"
|
|
echo "2. Migrate production database to use admin_settings (new table)"
|
|
echo ""
|
|
echo "Which would you prefer?"
|
|
|