Update responsive breakpoints and migration stub examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-28 06:52:39 +00:00
parent 61fec79af0
commit e1d4ea6592
4 changed files with 23 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ return new class extends Migration
// id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
// name VARCHAR(255)
// )");
// DB::statement("ALTER TABLE users ADD COLUMN status VARCHAR(20) DEFAULT 'active'");
// DB::statement("ALTER TABLE users ADD COLUMN name VARCHAR(255) NOT NULL");
// DB::statement("UPDATE posts SET published = 1 WHERE created_at < '2024-01-01'");
}

View File

@@ -19,8 +19,8 @@ return new class extends Migration
public function up()
{
// Examples:
// DB::statement("ALTER TABLE {{ table }} ADD COLUMN status VARCHAR(20) DEFAULT 'active'");
// DB::statement("ALTER TABLE {{ table }} ADD INDEX idx_status (status)");
// DB::statement("ALTER TABLE {{ table }} ADD COLUMN name VARCHAR(255) NOT NULL");
// DB::statement("ALTER TABLE {{ table }} ADD INDEX idx_name (name)");
// DB::statement("UPDATE {{ table }} SET updated_at = NOW() WHERE updated_at IS NULL");
}