Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration fail, fresh install. #313

Open
scopehs opened this issue Mar 4, 2024 · 1 comment
Open

Migration fail, fresh install. #313

scopehs opened this issue Mar 4, 2024 · 1 comment

Comments

@scopehs
Copy link

scopehs commented Mar 4, 2024

Fresh install, migration

Migration table created successfully.

ParseError

syntax error, unexpected token ","

at database/migrations/2021_02_13_221959_create_expansions_table.php:31
27▕ VALUES
28▕ ("Classic", "Classic", "Classic", "classic", 1, "2021-02-13 00:00:00"),
29▕ ("Burning Crusade", "TBC", "The Burning Crusade", "burning-crusade", 0, "2021-02-13 00:00:00"),
30▕ ("Wrath", "WoTLK", "Wrath of the Lich King", "wrath", 0, "2021-02-13 00:00:00"),
➜ 31▕ ("Season of Discovery", "SoD", "Season of Discovery", "season-of-discovery", 0, "2024-01-10 00:00:00");'),
32▕
33▕ Schema::table('guilds', function (Blueprint $table) {
34▕ $table->bigInteger('expansion_id')->default(1)->unsigned()->after('discord_id');
35▕ $table->foreign('expansion_id')->references('id')->on('expansions');

  +19 vendor frames

20 artisan:37
Illuminate\Foundation\Console\Kernel::handle()

@scopehs
Copy link
Author

scopehs commented Mar 4, 2024

Resolved by changing line 31 to;

           ("Season of Discovery", "SoD", "Season of Discovery", "season-of-discovery", 0, "2024-01-10 00:00:00")');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant