Code Duplication    Length = 24-25 lines in 2 locations

migrations/m180531_170328_create_technologies_table.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Handles the creation of table `technologies`.
7
 */
8
class m180531_170328_create_technologies_table extends Migration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->createTable('technologies', [
16
            'id' => $this->primaryKey(),
17
            'name' => $this->string(128)->notNull(),
18
            'share' => $this->tinyInteger(),
19
            'icon' => $this->string(128),
20
            'created_at' => $this->dateTime(),
21
            'updated_at' => $this->dateTime(),
22
        ]);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function safeDown()
29
    {
30
        $this->dropTable('technologies');
31
    }
32
}
33

migrations/m180602_191217_create_social_table.php 1 location

@@ 8-31 (lines=24) @@
5
/**
6
 * Handles the creation of table `social`.
7
 */
8
class m180602_191217_create_social_table extends Migration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->createTable('social', [
16
            'id' => $this->primaryKey(),
17
            'icon' => $this->string(128)->notNull(),
18
            'url' => $this->string()->notNull(),
19
            'created_at' => $this->dateTime(),
20
            'updated_at' => $this->dateTime(),
21
        ]);
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function safeDown()
28
    {
29
        $this->dropTable('social');
30
    }
31
}
32