Koha/installer/data/mysql/en/optional/sample_quotes.sql
Bernardo Gonzalez Kriegel 36b2b288a7 Bug 16573: fix structure and sample data for MySQL 5.7
Web install on Ubuntu 16.04/Mysql 5.7 fails.

This patch makes small changes to make installation
possible to kohastructure.sql and some sample files.

Sample values for quotes table can't have '0000-00-00 ...' values
nor NULL values, now() is perhaps an option.

Depends on Bug 16572

To test:
1) System with MySQL 5.7, for example Ubuntu 16.05
2) Apply 16572
3) Try web install, it fails
4) Apply this and next patch
5) Try again, now it succeed

This is only for English install, i18n files needs revision
I can do that if this is accepted.

Perphaps a change is needed to updatedatabase.pl

Ammended patch, 'created_on' field on virtualshelves
can't be timestamp default null, mysql 5.5 complains
that only one timestamp column can be defined as
default not null. Changed to 'datetime' type.

Can provide followup with updatedabase change,
but need an opinion if this type change makes sense.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-08-01 09:39:14 +00:00

34 lines
4.6 KiB
SQL

/*!40000 ALTER TABLE `quotes` DISABLE KEYS */;
INSERT INTO `quotes` VALUES
(1,'George Washington','To be prepared for war is one of the most effectual means of preserving peace.',now()),
(2,'Thomas Jefferson','When angry, count ten, before you speak; if very angry, an hundred.',now()),
(3,'Abraham Lincoln','Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.',now()),
(4,'Abraham Lincoln','I have always found that mercy bears richer fruits than strict justice.',now()),
(5,'Andrew Johnson','I feel incompetent to perform duties...which have been so unexpectedly thrown upon me.',now()),
(6,'Rutherford B. Hayes','He serves his party best who serves his country best.',now()),
(7,'Theodore Roosevelt','No President has ever enjoyed himself as much as I?',now()),
(8,'Theodore Roosevelt','Speak softly and carry a big stick.',now()),
(9,'William H. Taft','I have come to the conclusion that the major part of the president is to increase the gate receipts of expositions and fairs and bring tourists to town.',now()),
(11,'Woodrow Wilson','You cannot become thorough Americans if you think of yourselves in groups. America does not consist of groups. A man who thinks of himself as belonging to a particular national group in America has not yet become an American.',now()),
(12,'Calvin Coolidge','If you don\'t say anything, you won\'t be called on to repeat it.',now()),
(13,'Calvin Coolidge','Four fifths of all our troubles in this life would disappear if we would only sit down and keep still.',now()),
(14,'Herbert Hoover','The slogan of progress is changing from the full dinner pail to the full garage.',now()),
(15,'Franklin D. Roosevelt','Let me assert my firm belief that the only thing we have to fear is fear itself.',now()),
(16,'Harry S. Truman','If you can\'t stand the heat, get out of the kitchen.',now()),
(17,'Harry S. Truman','The atom bomb was no great decision. It was merely another powerful weapon in the arsenal of righteousness.',now()),
(18,'Harry S. Truman','The buck stops here.',now()),
(19,'Dwight D. Eisenhower','History does not long entrust the care of freedom to the weak or the timid.',now()),
(20,'John F. Kennedy','My fellow Americans, ask not what your country can do for you; ask what you can do for your country.',now()),
(22,'John F. Kennedy','I do not think it altogether inappropriate to introduce myself to this audience. I am the man who accompanied Jacqueline Kennedy to Paris, and I have enjoyed it.',now()),
(23,'Lyndon B. Johnson','The Great Society is a place where every child can find knowledge to enrich his mind and to enlarge his talents. It is a place where the city of man serves not only the needs of the body and the demands of commerce but the desire for beauty and the hunger for community. It is a place where men are more concerned with the quality of their goals than the quantity of their goods.',now()),
(24,'Richard Nixon','People have got to know whether or not their president is a crook. Well, I\'m not a crook.',now()),
(25,'Richard Nixon','When the President does it, that means that it is not illegal.',now()),
(26,'Gerald R. Ford','Our Long national nightmare is over.',now()),
(27,'Gerald R. Ford','Our constitution works. Our great republic is a government of laws, not of men.',now()),
(28,'Jimmy Carter','A strong nation, like a strong person, can afford to be gentle, firm, thoughtful, and restrained. It can afford to extend a helping hand to others. It\'s a weak nation, like a weak person, that must behave with bluster and boasting and rashness and other signs of insecurity.',now()),
(30,'Ronald Reagan','It is not my intention to do away with government. It is rather to make it work -work with us, not over us; stand by our side, not ride on our back. Government can and must provide opportunity, not smother it; foster productivity, not stifle it. This Administration\'s objective will be a healthy, vigorous, growing economy.',now()),
(31,'Ronald Reagan','Each generation goes further than the generation preceding it because it stands on the shoulders of that generation. You will have opportunities beyond anything we\'ve ever known.',now()),
(32,'George H. W. Bush','We have ...drawn a line in the sand.',now()),
(33,'George W. Bush','If America shows weakness and uncertainty, the world will drift toward tragedy. That will not happen on my watch.',now()),
(34,'George W. Bush','Every nation in every region now has a decision to make. Either you are with us, or you are with the terrorists.',now());
/*!40000 ALTER TABLE `quotes` ENABLE KEYS */;