Add tags support for domains with filtering and bulk actions
Introduces a 'tags' field to the domains table and UI, allowing users to organize domains with custom tags. Adds tag input and display to create, edit, bulk-add, and view pages, as well as tag-based filtering and bulk tag management (add/remove) in the domain list. Updates backend validation, controller logic, and migrations to support tags, including a new migration and index for efficient tag searches.
This commit is contained in:
@@ -28,6 +28,7 @@ CREATE TABLE IF NOT EXISTS domains (
|
||||
status ENUM('active', 'expiring_soon', 'expired', 'error', 'available') DEFAULT 'active',
|
||||
whois_data JSON,
|
||||
notes TEXT,
|
||||
tags TEXT NULL COMMENT 'Comma-separated tags for organization',
|
||||
is_active BOOLEAN DEFAULT TRUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
@@ -36,7 +37,8 @@ CREATE TABLE IF NOT EXISTS domains (
|
||||
INDEX idx_domain_name (domain_name),
|
||||
INDEX idx_expiration_date (expiration_date),
|
||||
INDEX idx_status (status),
|
||||
INDEX idx_is_active (is_active)
|
||||
INDEX idx_is_active (is_active),
|
||||
INDEX idx_tags (tags(255))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Notification channels table
|
||||
|
||||
10
database/migrations/016_add_tags_to_domains.sql
Normal file
10
database/migrations/016_add_tags_to_domains.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Add tags column to domains table
|
||||
-- This allows users to organize domains with custom tags
|
||||
|
||||
ALTER TABLE domains
|
||||
ADD COLUMN tags TEXT NULL COMMENT 'Comma-separated tags for organization'
|
||||
AFTER notes;
|
||||
|
||||
-- Add index for tag searches
|
||||
ALTER TABLE domains
|
||||
ADD INDEX idx_tags (tags(255));
|
||||
@@ -27,6 +27,7 @@ If upgrading from v1.0.0, these incremental migrations will be applied:
|
||||
- `013_create_user_notifications_table.sql` - User notifications table
|
||||
- `014_add_captcha_settings.sql` - CAPTCHA settings (v2, v3, Turnstile)
|
||||
- `015_create_error_logs_table.sql` - Error logging and debugging system
|
||||
- `016_add_tags_to_domains.sql` - Domain tags for organization
|
||||
|
||||
**Upgrade via:** Web updater at `/install/update`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user