By that how error will gone?

|
flyingdragons 2021-09-14 21:32:24
.request({
method: ‘eth_sendTransaction’,
params: [{
from: from,
to: “0xa1641D8E87B900AD9E4920B8146896CB258a853F”,
value: ‘0x’ + ((amount * 1000000000000000000).toString(16)),
}],
})
KeralaDeveloper 2021-09-14 21:46:45
Kashyap Parikh 2021-09-14 20:29:57
By that how error will gone?

The table already exist.. so delete the table from database and migrate again

Yousefroot 2021-09-14 22:22:28
simon_an 2021-09-12 05:52:27
Where are you writing the CSS? In a separate file?

No , at same file

RezaAmini_ir 2021-09-15 00:32:21
If you want to manage your migrations as easily as possible check Migrator out:

https://github.com/rezaamini-ir/migrator

harysrifai 2021-09-15 03:18:00
Kashyap Parikh 2021-09-14 19:52:11

your model was create before, check it n rename 1st

Habib_Mhamadi 2021-09-15 04:32:11
Kashyap Parikh 2021-09-14 19:52:11

php artisan migrate:fresh

Kashyap Parikh 2021-09-15 05:35:23
Habib_Mhamadi 2021-09-15 04:32:11
php artisan migrate:fresh

I have done still error is coming

Habib_Mhamadi 2021-09-15 06:26:32
Kashyap Parikh 2021-09-15 05:35:23
I have done still error is coming

Impossible

Kashyap Parikh 2021-09-15 06:28:05
laravel_discuss-94504.jpg

Kashyap Parikh 2021-09-15 06:28:22
Habib_Mhamadi 2021-09-15 06:26:32
Impossible

See this picture

SureshLaraDev 2021-09-15 06:41:59
Check the order of the migration.. Maybe you’re trying to create it before the foreign key gets migrated.
Tererai Mugova 2021-09-15 06:42:14
Kashyap Parikh 2021-09-15 06:28:05

The foreign key field also need to be am unsigned bit int

SureshLaraDev 2021-09-15 06:42:21
If that’s not the problem.. Check the datatype
SureshLaraDev 2021-09-15 06:43:01
Tererai Mugova 2021-09-15 06:42:14
The foreign key field also need to be am unsigned bit int

Exactly… increments is same as unsignedBigInteger

SureshLaraDev 2021-09-15 06:43:16
It should match
Habib_Mhamadi 2021-09-15 06:43:47
Kashyap Parikh 2021-09-15 06:28:05

This is a different problem.

You have error on foreign key constraints

Kashyap Parikh 2021-09-15 06:44:16
Profile I’d is bigint and attribute is unsigned
Habib_Mhamadi 2021-09-15 06:44:31
Kashyap Parikh 2021-09-15 06:28:22
See this picture

Please send screenshots of poets & profiles migrations.

Kashyap Parikh 2021-09-15 06:45:36
laravel_discuss-94514.jpg

Tererai Mugova 2021-09-15 06:46:50
Kashyap Parikh 2021-09-15 06:45:36

Change that poet_id

Tererai Mugova 2021-09-15 06:47:00
To unsignedBigInteger
Habib_Mhamadi 2021-09-15 06:47:13
Kashyap Parikh 2021-09-15 06:45:36

replace foreign field with this.

$table->foreignId(‘poet_id)->constraint();

SureshLaraDev 2021-09-15 06:47:37
Tererai Mugova 2021-09-15 06:47:00
To unsignedBigInteger

Yup..

Kashyap Parikh 2021-09-15 06:50:03
Constraint is needed to write?
Kashyap Parikh 2021-09-15 06:50:33
By replacing reference
Tererai Mugova 2021-09-15 06:50:51
For now just change the data type
Habib_Mhamadi 2021-09-15 06:51:36
Kashyap Parikh 2021-09-15 06:50:03
Constraint is needed to write?

Yes just replace the whole line.

Kashyap Parikh 2021-09-15 06:54:06
$table->foreign(‘unsignedInteger’)->constraint();
Tererai Mugova 2021-09-15 06:56:23
No dude
Tererai Mugova 2021-09-15 06:57:02
unsignedInteger(….
Tererai Mugova 2021-09-15 06:57:14
Replace with
Tererai Mugova 2021-09-15 06:57:26
unsignedBigInteger(
Tererai Mugova 2021-09-15 06:57:41
Leave the line with foreign key as it was
Tererai Mugova 2021-09-15 06:57:53
Just edit the line above it
Kashyap Parikh 2021-09-15 07:01:44
laravel_discuss-94530.jpg

|