Open chimerasoup opened 6 years ago
This also counts for Windows installation. Did fresh install of YAPO and the same errors occured
after install sqlite3 and add this to the windows path i solved this the following way:
go to the YAPO installation folder: e.g. c:\projects\YAPO
enter: manage.py dbshell
In the sqlite shell enter the following:
ALTER TABLE "videos_localscenefolders" ADD COLUMN "date_added" datetime;
ALTER TABLE "videos_scene" ADD COLUMN "date_last_played" datetime;
ALTER TABLE "videos_scene" ADD COLUMN "modified_date" datetime;
ALTER TABLE "videos_scene" ADD COLUMN "last_filename_tag_lookup" varchar(500) NULL;
ALTER TABLE "videos_folder" ADD COLUMN "date_added" datetime;
ALTER TABLE "videos_folder" ADD COLUMN "modified_date" datetime;
ALTER TABLE "videos_actor" ADD COLUMN "modified_date" datetime;
ALTER TABLE "videos_actoralias" ADD COLUMN "date_added" datetime;
ALTER TABLE "videos_website" ADD COLUMN "website_alias" varchar(500) NULL;
ALTER TABLE "videos_website" ADD COLUMN "modified_date" datetime;
ALTER TABLE "videos_scenetag" ADD COLUMN "scene_tag_alias" varchar(500) NULL;
ALTER TABLE "videos_scenetag" ADD COLUMN "modified_date" datetime;
ALTER TABLE "videos_actortag" ADD COLUMN "actor_tag_alias" varchar(500) NULL;
ALTER TABLE "videos_actortag" ADD COLUMN "modified_date" datetime;
CREATE TABLE IF NOT EXISTS "videos_playlist" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(500) NOT NULL, "date_added" datetime NOT NULL, "modified_date" datetime NOT NULL);
CREATE TABLE IF NOT EXISTS "videos_actortag_scene_tags" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(500) NOT NULL, "date_added" datetime NOT NULL, "modified_date" datetime NOT NULL);
.quit
laatste commando is om de sql prompt af te sluiten
After installing YAPO and starting the web server, there are a number of columns that aren't created automatically for some reason. Some of these columns are:
and the table
videos_actortag_scene_tags
The lack of these columns caused many things not to work (e.g. Adding a Folder, creating a Tag, etc.). After created the columns manually in the DB, many errors disappeared. I haven't tested everything yet.
Error Example: After installing and running YAPO, when I click on Settings, YAPO complains that videos_localscenefolders.date_added doesn't exist.
Server Console output: