Skip to content

Commit

Permalink
Update db schema file for changes introduced by issue #274
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Mar 7, 2023
1 parent 3a4536d commit 8244371
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions installer/data.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- MariaDB dump 10.19 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64)
-- MariaDB dump 10.19 Distrib 10.5.18-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: libki-mariadb Database: libki
-- ------------------------------------------------------
Expand Down Expand Up @@ -147,7 +147,7 @@ UNLOCK TABLES;

LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES ('','AutomaticTimeExtensionAt',''),('','AutomaticTimeExtensionLength',''),('','AutomaticTimeExtensionRenewal','0'),('','AutomaticTimeExtensionUnless','this_reserved'),('','AutomaticTimeExtensionUseAllotment','no'),('','BatchGuestPassCustomCSS','body { /* default body style emulates a pre tag */\n font-family: monospace;\n white-space: pre;\n display: block;\n unicode-bidi: embed;\n}\n.guest-pass { /* each username and password is in a guest-pass span */\n /* page-break-before: always; */ /* This will cause each pass to have a page break, good for use with receipt printers */\n}\n.guest-pass-username {} /* span containing the username label and the username itself */\n.guest-pass-username-label {} /* span containing the username label */\n.guest-pass-username-content {} /* span containing the username itself */\n.guest-pass-password {} /* span containing the password label and the password itself */\n.guest-pass-password-label {} /* span containing the password label */\n.guest-pass-password-content {} /* span containing the password itself */\n'),('','BatchGuestPassPasswordLabel','Computer Guest Pass Password= '),('','BatchGuestPassTemplate','<html>\n <head>\n <style type=\"text/css\">[% batch_guest_pass_custom_css %]</style>\n </head>\n <body>\n [% FOREACH g IN guests %]\n <p class=\"guest-pass\">\n <p class=\"guest-pass-username\">\n <span class=\"guest-pass-username-label\">[% batch_guest_pass_username_label %]</span><span class=\"guest-pass-username-content\">[% g.username %]</span>\n </p>\n <p class=\"guest-pass-password\">\n <span class=\"guest-pass-password-label\">[% batch_guest_pass_password_label %]</span><span class=\"guest-pass-password-content\">[%g. password %]</span>\n </p>\n </p>\n <br/>\n [% END %]\n </body>\n</html>'),('','BatchGuestPassUsernameLabel','Your Library Username= '),('','ClientBehavior','FCFS+RES'),('','CurrentGuestNumber','1'),('','CustomJsAdministration',''),('','CustomJsPublic',''),('','DataRetentionDays',''),('','DefaultGuestSessionTimeAllowance','45'),('','DefaultGuestTimeAllowance','45'),('','DefaultSessionTimeAllowance','45'),('','DefaultTimeAllowance','45'),('','DisplayReservationStatusWithin','60'),('','GuestBatchCount','40'),('','MinimumReservationMinutes','5'),('','PostCrashTimeout','5'),('','PrintJobRetentionDays','0'),('','ReservationShowUsername','RSD'),('','ReservationTimeout','15'),('','ShowFirstLastNames','1'),('','ThirdPartyURL',''),('','UserCategories',''),('','Version','4.1.0');
INSERT INTO `settings` VALUES ('','AutomaticTimeExtensionAt',''),('','AutomaticTimeExtensionLength',''),('','AutomaticTimeExtensionRenewal','0'),('','AutomaticTimeExtensionUnless','this_reserved'),('','AutomaticTimeExtensionUseAllotment','no'),('','BatchGuestPassCustomCSS','body { /* default body style emulates a pre tag */\n font-family: monospace;\n white-space: pre;\n display: block;\n unicode-bidi: embed;\n}\n.guest-pass { /* each username and password is in a guest-pass span */\n /* page-break-before: always; */ /* This will cause each pass to have a page break, good for use with receipt printers */\n}\n.guest-pass-username {} /* span containing the username label and the username itself */\n.guest-pass-username-label {} /* span containing the username label */\n.guest-pass-username-content {} /* span containing the username itself */\n.guest-pass-password {} /* span containing the password label and the password itself */\n.guest-pass-password-label {} /* span containing the password label */\n.guest-pass-password-content {} /* span containing the password itself */\n'),('','BatchGuestPassPasswordLabel','Computer Guest Pass Password= '),('','BatchGuestPassTemplate','<html>\n <head>\n <style type=\"text/css\">[% batch_guest_pass_custom_css %]</style>\n </head>\n <body>\n [% FOREACH g IN guests %]\n <p class=\"guest-pass\">\n <p class=\"guest-pass-username\">\n <span class=\"guest-pass-username-label\">[% batch_guest_pass_username_label %]</span><span class=\"guest-pass-username-content\">[% g.username %]</span>\n </p>\n <p class=\"guest-pass-password\">\n <span class=\"guest-pass-password-label\">[% batch_guest_pass_password_label %]</span><span class=\"guest-pass-password-content\">[%g. password %]</span>\n </p>\n </p>\n <br/>\n [% END %]\n </body>\n</html>'),('','BatchGuestPassUsernameLabel','Your Library Username= '),('','ClientBehavior','FCFS+RES'),('','CurrentGuestNumber','1'),('','CustomJsAdministration',''),('','CustomJsPublic',''),('','DataRetentionDays',''),('','DefaultGuestSessionTimeAllowance','45'),('','DefaultGuestTimeAllowance','45'),('','DefaultSessionTimeAllowance','45'),('','DefaultTimeAllowance','45'),('','DisplayReservationStatusWithin','60'),('','GuestBatchCount','40'),('','MinimumReservationMinutes','5'),('','PostCrashTimeout','5'),('','PrintJobRetentionDays','0'),('','ReservationShowUsername','RSD'),('','ReservationTimeout','15'),('','ShowFirstLastNames','1'),('','ThirdPartyURL',''),('','UserCategories',''),('','Version','4.1.1');
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -186,4 +186,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-03-21 8:32:59
-- Dump completed on 2023-03-07 9:40:54
6 changes: 3 additions & 3 deletions installer/schema.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- MySQL dump 10.19 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64)
-- MariaDB dump 10.19 Distrib 10.5.18-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: libki-mariadb Database: libki
-- ------------------------------------------------------
Expand Down Expand Up @@ -339,7 +339,7 @@ CREATE TABLE `statistics` (
`created_on` timestamp NULL DEFAULT NULL,
`anonymized` tinyint(1) DEFAULT 0,
`session_id` char(72) COLLATE utf8_unicode_ci DEFAULT NULL,
`info` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
`info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `instance` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Expand Down Expand Up @@ -401,4 +401,4 @@ CREATE TABLE `users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-01-10 10:30:15
-- Dump completed on 2023-03-07 9:40:54
12 changes: 6 additions & 6 deletions lib/Libki/Schema/DB/Result/Statistic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ __PACKAGE__->table("statistics");
=head2 username
data_type: 'varchar'
is_nullable: 0
is_nullable: 1
size: 191
=head2 client_name
data_type: 'varchar'
is_nullable: 0
is_nullable: 1
size: 191
=head2 client_location
Expand Down Expand Up @@ -123,9 +123,9 @@ __PACKAGE__->add_columns(
"id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"username",
{ data_type => "varchar", is_nullable => 0, size => 191 },
{ data_type => "varchar", is_nullable => 1, size => 191 },
"client_name",
{ data_type => "varchar", is_nullable => 0, size => 191 },
{ data_type => "varchar", is_nullable => 1, size => 191 },
"client_location",
{ data_type => "varchar", is_nullable => 1, size => 191 },
"client_type",
Expand Down Expand Up @@ -159,8 +159,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("id");


# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-10 10:09:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fhN21G3vMwfAJmaGkwms6Q
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2023-03-07 09:40:52
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O8bfPRIhvsv9SwSldYm87Q


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down

0 comments on commit 8244371

Please sign in to comment.