Ce dépôt a été archivé le 2025-08-22. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
Fichiers
dumbo/app/database/migrations/2013_09_26_022825_comments_settings.php

55 lignes
950 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class CommentsSettings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('comments', function($table) {
$table->integer('bewertung');
$table->dropColumn('event');
});
Schema::create('news', function($table) {
$table->increments('id');
$table->integer('author');
$table->string('headline');
$table->text('body');
$table->timestamps();
});
Schema::drop('events');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('comments', function($table) {
$table->dropColumn('bewertung');
$table->integer('event');
});
Schema::create('events', function($table) {
$table->increments('id');
$table->string('name');
$table->date('datum');
$table->text('beschreibung');
$table->timestamps();
});
Schema::drop('news');
}
}