Final Commit

This commit is contained in:
2024-04-24 10:17:18 +05:45
parent b49e06fa93
commit 3502bb0b4f
41 changed files with 1497 additions and 502 deletions

View File

@ -593,6 +593,34 @@ class LMS
{
static $initialized = false;
if (!$initialized) {
DB::statement("CREATE TABLE IF NOT EXISTS `tbl_logos` (
`logo_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`logo` VARCHAR(255),
`link` VARCHAR(255),
`display_order` INT(11),
`status` INT(11),
`remarks` TEXT,
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
`createdby` INT(11),
`updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updatedby` INT(11)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
");
DB::statement("CREATE TABLE IF NOT EXISTS `tbl_testimonials` (
`testimonial_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`video_url` VARCHAR(255),
`review` VARCHAR(255),
`name` VARCHAR(20) NOT NULL,
`designation` VARCHAR(100),
`display_order` INT(11),
`status` INT(11),
`remarks` TEXT,
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
`createdby` INT(11),
`updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updatedby` INT(11)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
");
DB::statement("CREATE TABLE IF NOT EXISTS `tbl_contactus` (
`inquiries_id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`title` VARCHAR(255),
@ -1595,6 +1623,12 @@ class LMS
$table->string('photo')->nullable();
});
}
if (!Schema::hasColumn('campaignarticles', 'sub_title')) {
Schema::table('campaignarticles', function (Blueprint $table) {
// Add the new column to the table
$table->string('sub_title')->nullable()->after('title');
});
}
$initialized = true;
}