当前位置:网站首页>Laravel database
Laravel database
2022-04-23 05:20:00 【klx2545845553】
php artisan migrate
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUuserTable extends Migration
{
/** * Run the migrations. * * @return void */
public function up()
{
Schema::create('uuser', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name',20)->comment(' user name ');
$table->string('password',50)->comment(' User password ');
$table->integer('age')->nullable()->comment(' Age ');
});
}
/** * Reverse the migrations. * * @return void */
public function down()
{
Schema::dropIfExists('uuser');
}
}
版权声明
本文为[klx2545845553]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220547045461.html
边栏推荐
- What role do tools play in digital transformation?
- Redis data type usage scenario
- Summary of R & D technology
- Modèle axé sur le domaine DDD (III) - gestion des transactions à l'aide de Saga
- Study notes: unity customsrp-11-post processing --- bloom
- In aggregated query without group by, expression 1 of select list contains nonaggregated column
- MySQL foreign key constraint
- Basic knowledge of vegetable chicken database
- MFC实现资源单独Dll实现
- Low code and no code considerations
猜你喜欢
随机推荐
Solution of how to log in with mobile phone verification code in wireless network
学习笔记:Unity CustomSRP-12-HDR
4 个最常见的自动化测试挑战及应对措施
Basic theory of Flink
何时适合进行自动化测试?(下)
Restful toolkit of idea plug-in
Cloud computing and cloud native architecture design of openshift
Anti crawler (0): are you still climbing naked with selenium? You're being watched! Crack webdriver anti crawler
日志简介和构建web应用
MySQL basics 3
JSP -- Introduction to JSP
Top 25 Devops tools in 2021 (Part 2)
Where, on when MySQL external connection is used
Acid of MySQL transaction
Study notes: unity customsrp-12-hdr
Discussion on flow restriction
Blender程序化地形制作
The WebService interface writes and publishes calls to the WebService interface (2)
工具在数字化转型中扮演了什么样的角色?
Graphics.FromImage报错“Graphics object cannot be created from an image that has an indexed pixel ...”