# php自定义表结构创建表 **Repository Path**: newyear_xn/php_table_operation ## Basic Information - **Project Name**: php自定义表结构创建表 - **Description**: 开发灵感来自于laravel框架的Migration数据库迁移操作,对数据表操作更加便捷方便 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2018-08-28 - **Last Updated**: 2021-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # php自定义表结构创建表 #### 项目介绍 开发灵感来自于laravel框架的Migration数据库迁移操作,对数据表操作更加便捷方便,使用简单 #### 软件架构 面向对象开发模式 #### 使用说明 1. 创建表 ~~~ Schema::create("table_name",function (Blueprint $table){ $table->comment = "表注释"; $table->increments("id"); $table->text("aa")->comment("字段注释")->nullable(); }); ~~~ 2. 删除表 ~~~ Schema::drop("table_name"); ~~~ 3. 新增/修改/删除外键、索引、字段,重名命表名等操作...