1.1.0 (2025-10-09) - **User Notifications System** - In-app notification center with 7 notification types, filtering, pagination - **Advanced Session Management** - Database-backed sessions with geolocation (country, city, ISP) - **Remote Session Control** - Terminate any device instantly with immediate logout validation - **Enhanced Profile Page** - Sidebar navigation with 4 tabs, hash-based routing (#profile, #security, #sessions) - **MVC Architecture Refactoring** - 3 new Helpers (Layout, Domain, Session), ~265 lines cleaned from views - **Geolocation Tracking** - IP-based location detection using ip-api.com, country flags with flag-icons - **Device Detection** - Browser & device type parsing (Chrome/Firefox/Safari, Desktop/Mobile/Tablet) - **Auto-Detected Cron Paths** - Settings show actual installation paths (thanks @jadeops) - **Welcome Notifications** - Sent to new users on registration or fresh install - **Upgrade Notifications** - Admins notified on system updates with version & migration count - **Web-Based Installer** - Replaces CLI, auto-generates encryption key, one-time password display - **Web-Based Updater** - `/install/update` for running new migrations with smart detection - **User Registration** - Full signup flow with email verification, password reset, resend verification - **User Management** - CRUD for users with filtering, sorting, pagination (admin-only) - **Remember Me** - 30-day secure tokens linked to sessions, cascade deletion on logout - **Session Validator** - Middleware validates sessions on every request for instant remote logout - **Consistent UI/UX** - Unified filtering, sorting, pagination across Domains, Users, Notifications, TLD Registry - **Smart Migrations** - Consolidated schema for fresh installs, incremental for upgrades - **XSS Protection** - htmlspecialchars() applied across all user-facing data (thanks @jadeops)
37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
# Database Migrations
|
|
|
|
## Fresh Installation (v1.1.0+)
|
|
|
|
For new installations, use the consolidated schema:
|
|
|
|
- **`000_initial_schema_v1.1.0.sql`** - Complete database schema for v1.1.0
|
|
|
|
**Install via:** Web installer at `/install`
|
|
|
|
## Incremental Migrations (v1.0.0 → v1.1.0)
|
|
|
|
If upgrading from v1.0.0, these incremental migrations will be applied:
|
|
|
|
- `001_create_tables.sql` - Core tables (domains, groups, channels, logs)
|
|
- `002_create_users_table.sql` - Users table
|
|
- `003_add_whois_fields.sql` - WHOIS data fields
|
|
- `004_create_tld_registry_table.sql` - TLD registry
|
|
- `005_update_tld_import_logs.sql` - Import logs updates
|
|
- `006_add_complete_workflow_import_type.sql` - Workflow import type
|
|
- `007_add_app_and_email_settings.sql` - Application settings
|
|
- `008_add_notes_to_domains.sql` - Domain notes field
|
|
- `009_add_authentication_features.sql` - Authentication system
|
|
- `010_add_app_version_setting.sql` - Version setting
|
|
|
|
**Upgrade via:** Web updater at `/install/update`
|
|
|
|
## Migration System
|
|
|
|
The installer automatically:
|
|
- Detects if this is a fresh install or upgrade
|
|
- Uses consolidated schema for fresh installs
|
|
- Uses incremental migrations for upgrades
|
|
- Tracks executed migrations in `migrations` table
|
|
- Prevents re-running completed migrations
|
|
|