Skip to content

Commit

Permalink
Merge pull request #35 from ed-solis/patch-1
Browse files Browse the repository at this point in the history
Create the database only if it does not exists
  • Loading branch information
H2CK committed Dec 21, 2020
2 parents ce74104 + 69e25bc commit eca372b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webtrees.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

CREATE DATABASE `<DB_NAME>` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
CREATE DATABASE IF NOT EXISTS `<DB_NAME>` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `<DB_NAME>`;

DROP TABLE IF EXISTS `wt_block`;
Expand Down

0 comments on commit eca372b

Please sign in to comment.