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:
@@ -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'");
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user