1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- use think\migration\Migrator;
- use think\migration\db\Column;
- class SmsTemplateAddContent extends Migrator
- {
-
- public function change()
- {
- if ($this->hasTable('sms_template')) {
- $table = $this->table('sms_template');
- $table->addColumn('content', 'string', ['limit' => 500,'null' => true,'signed' => true,'comment' => '模板内容',])
- ->update();
- }
- }
- }
|